border-bottom-width-036

Border-bottom-width using centimeters with a minimum plus one value, 1cm

WeasyPrint

This browser

Assertion
The 'border-bottom-width' property supports a minimum plus one length value in centimeters 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 centimeters with a minimum plus one value, 1cm</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="">
 9         <meta name="assert" content="The 'border-bottom-width' property supports a minimum plus one length value in centimeters that sets the width of the bottom border.">
10         <style type="text/css">
11             div
12             {
13                 width: 50px;
14             }
15             .ref1, .ref2
16             {
17                 position: absolute;
18             }
19             .ref1
20             {
21                 background: red;
22                 height: 37px;
23                 z-index: -1;
24             }
25             .ref2
26             {
27                 background: green;
28                 height: 38px;
29             }
30             .test1, .test2
31             {
32                 border-bottom-style: solid;
33                 border-bottom-width: 1cm;
34                 height: 0;
35             }
36             .test1
37             {
38                 border-bottom-color: green;
39             }
40             .test2
41             {
42                 border-bottom-color: red;
43             }
44             #parent
45             {
46                 background: red;
47                 height: 75px;
48             }
49         </style>
50     </head>
51     <body>
52         <p>Test passes if there is a solid green box below and there is no red visible on the page.</p>
53         <div id="parent">
54             <div class="ref1"></div>
55             <div class="test1"></div>
56             <div class="ref2"></div>
57             <div class="test2"></div>
58         </div>
59     </body>
60 </html>