outline-width-095

Outline-width set to 'inherit'

WeasyPrint

This browser

Assertion
The 'outline-width' property supports a value of 'inherit' and gets its computed value from its parent.

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: Outline-width set to 'inherit'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/ui.html#propdef-outline-width">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/ui.html#dynamic-outlines">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'outline-width' property supports a value of 'inherit' and gets its computed value from its parent.">
10         <style type="text/css">
11             #parent
12             {
13                 margin: 5em 0 0 1em;
14                 position: relative;
15             }
16             #abs
17             {
18                 border: 1em solid white;
19                 position: absolute;
20                 top: -2em;
21                 left: -1em;
22                 height: 4em;
23                 width: 22em;
24             }
25             div div
26             {
27                 width: 20em;
28             }
29             #div1
30             {
31                 margin-left: 1em;
32                 outline-color: invert;
33                 outline-style: solid;
34                 outline-width: 1em;
35             }
36             #div1 div
37             {
38                 outline-color: orange;
39                 outline-style: solid;
40                 outline-width: inherit;
41                 height: 2em;
42             }
43             #div2
44             {
45                 border: solid blue 1em;
46                 margin-top: 3em;
47                 height: 2em;
48             }
49         </style>
50     </head>
51     <body>
52     <p>Test passes if there the two boxes are the same size and the bottom box is blue and the top box is blue or black.</p>
53         <div id="parent">
54             <div id="abs"></div>
55             <div id="div1">
56                 <div>Filler Text</div>
57             </div>
58             <div id="div2">Filler Text</div>
59         </div>
60     </body>
61 </html>