border-right-width-036

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

WeasyPrint

This browser

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