border-bottom-width-083

Border-bottom-width using 'ex' units with a nominal value, 6ex

WeasyPrint

This browser

Flags
ahem
Assertion
The 'border-bottom-width' property supports a nominal length value in 'ex' units that sets the width of the bottom 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-bottom-width using 'ex' units with a nominal value, 6ex</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-bottom-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-bottom-width' property supports a nominal length value in 'ex' units that sets the width of the bottom border.">
10         <style type="text/css">
11             div
12             {
13                 display: inline-block;
14                 font: 20px/1 Ahem;
15                 width: 1in;
16             }
17             #reference
18             {
19                 background-color: black;
20                 height: 1in;
21                 margin-left: 5px;
22             }
23             #test
24             {
25                 border-bottom-style: solid;
26                 border-bottom-width: 6ex;
27                 height: 0;
28             }
29         </style>
30     </head>
31     <body>
32         <p>Test passes if the two boxes below are the same height.</p>
33         <div id="test"></div>
34         <div id="reference"></div>
35     </body>
36 </html>