border-left-width-012

Border-left-width using points with a minimum minus one (negative) value, -1pt

WeasyPrint

This browser

Flags
invalid
Assertion
The 'border-left-width' property does not support a negative length value in points 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-left-width using points with a minimum minus one (negative) value, -1pt</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-left-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-left-width' property does not support a negative length value in points and resets to the initial value.">
10         <style type="text/css">
11             div
12             {
13                 border-left-style: solid;
14                 height: 1in;
15                 width: 0;
16             }
17             #reference
18             {
19                 border-left-width: medium;
20                 margin-top: 5px;
21             }
22             #test
23             {
24                 border-left-style: solid;
25                 border-left-width: -1pt;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the two lines below are the same width.</p>
31         <div id="test"></div>
32         <div id="reference"></div>
33     </body>
34 </html>