outline-width-096

outline-width - 'outline-style: none' and inherit

WeasyPrint

This browser

Assertion
The computed value of 'outline-width' property is '0' if 'outline-style' is 'none'

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: outline-width - 'outline-style: none' and inherit</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" title="Section 18.4 Dynamic outlines: the 'outline' property" href="http://www.w3.org/TR/CSS21/ui.html#dynamic-outlines">
10   <meta content="" name="flags">
11   <meta content="The computed value of 'outline-width' property is '0' if 'outline-style' is 'none'" name="assert">
12 
13   <style type="text/css">
14   #parent
15   {
16   margin: 40px 20px;
17   outline: black none 20px;
18   }
19 
20   #child
21   {
22   outline-color: red;
23   outline-style: solid;
24   outline-width: inherit;
25   }
26   </style>
27 
28  </head>
29 
30  <body>
31 
32   <p>Test passes if there is <strong>no red</strong>.</p>
33 
34   <div id="parent">
35    <div id="child">Filler Text</div>
36   </div>
37 
38  </body>
39 </html>