border-width-012

Border-width: inherit - border-style: hidden

WeasyPrint

This browser

Assertion
The border-width computed value is '0' if the border style is 'none' or 'hidden'.

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: Border-width: inherit - border-style: hidden</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" title="Section 8.5.1 Border width" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties">
10   <meta content="" name="flags">
11   <meta content="The border-width computed value is '0' if the border style is 'none' or 'hidden'." name="assert">
12 
13   <style type="text/css">
14   div#parent
15   {
16   border-color: red;
17   border-style: hidden;
18   border-width: 50px;
19   }
20 
21   div#child
22   {
23   border-color: red;
24   border-style: solid;
25   border-width: inherit;
26   }
27   </style>
28 
29  </head>
30 
31  <body>
32 
33   <p>Test passes if there is <strong>no red</strong>.</p>
34 
35   <div id="parent">
36     <div id="child"></div>
37   </div>
38 
39  </body>
40 </html>