border-left-width-080

Border-left-width using 'ex' units with a minimum plus one value, 1ex

WeasyPrint

This browser

Flags
ahem
Assertion
The 'border-left-width' property supports a minimum plus one length value in 'ex' units that sets the width of the left border.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Border-left-width using 'ex' units with a minimum plus one value, 1ex</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border-left-width">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'border-left-width' property supports a minimum plus one length value in 'ex' units that sets the width of the left border.">
10         <style type="text/css">
11             div
12             {
13                 font: 20px/1 Ahem;
14                 height: 1in;
15             }
16             #reference
17             {
18                 background-color: black;
19                 margin-top: 5px;
20                 width: 1ex;
21             }
22             #test
23             {
24                 border-left-style: solid;
25                 border-left-width: 1ex;
26                 width: 0;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the two boxes below are the same width.</p>
32         <div id="test"></div>
33         <div id="reference"></div>
34     </body>
35 </html>