border-width-013

Border-width - length specified with a percentage unit

WeasyPrint

This browser

Flags
invalid
Assertion
A length value specified with a percentage unit does not apply to 'border-width'.

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 - length specified with a percentage unit</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="invalid" name="flags">
11   <meta content="A length value specified with a percentage unit does not apply to 'border-width'." name="assert">
12 
13   <style type="text/css">
14   div#parent
15   {
16   height: 300px;
17   width: 400px;
18   }
19 
20   div#child
21   {
22   border-color: red;
23   border-style: solid;
24   border-width: 0px;
25   border-width: 16%;
26   width: 200px;
27   }
28   </style>
29 
30  </head>
31 
32  <body>
33 
34   <p>Test passes if there is <strong>no red</strong>.</p>
35 
36   <div id="parent">
37     <div id="child"></div>
38   </div>
39 
40  </body>
41 </html>