border-top-width-056

Border-top-width using inches with a minimum minus one (negative) value, -1in

WeasyPrint

This browser

Flags
invalid
Assertion
The 'border-top-width' property does not support a negative length value in inches and resets to the initial value.

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-top-width using inches with a minimum minus one (negative) value, -1in</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-top-width">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties">
 8         <meta name="flags" content="invalid">
 9         <meta name="assert" content="The 'border-top-width' property does not support a negative length value in inches and resets to the initial value.">
10         <style type="text/css">
11             span
12             {
13                 border-top-style: solid;
14             }
15             #span1
16             {
17                 border-top-width: -1in;
18             }
19             #span2
20             {
21                 border-top-width: medium;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if all the "Filler Text" below has a line over it and both lines are the same thickness.</p>
27         <div>
28             <span id="span1">Filler Text Filler Text Filler Text</span> <span id="span2">Filler Text Filler Text Filler Text</span>
29         </div>
30     </body>
31 </html>