border-width-005

Border-width shorthand property set to 'inherit', inheriting one value

WeasyPrint

This browser

Assertion
The 'border-width' property set to 'inherit' correctly inherits the one value specified on the parent element.

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-width shorthand property set to 'inherit', inheriting one value</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-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-width' property set to 'inherit' correctly inherits the one value specified on the parent element.">
10         <style type="text/css">
11             #parent
12             {
13                 border-color: transparent;
14                 border-style: solid;
15                 border-width: 0.5in;
16             }
17             #test
18             {
19                 border-style: solid;
20                 border-width: inherit;
21                 height: 0;
22                 width: 0;
23             }
24             #reference
25             {
26                 background-color: black;
27                 height: 1in;
28                 margin-top: 5px;
29                 width: 1in;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if the boxes below are the same width.</p>
35         <div id="parent">
36             <div id="test"></div>
37             <div id="reference"></div>
38         </div>
39     </body>
40 </html>