border-width-009

CSS Parsing: Negative Border Widths

WeasyPrint

This browser

Flags
invalid

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: CSS Parsing: Negative Border Widths</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/parsing/003.xml" type="application/xhtml+xml">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units">
 8   <meta name="flags" content="invalid">
 9   <style type="text/css">
10    p { color: green; border-color: red; border-width: 0; border-width: -10px; border-style: solid; display: block; }
11   </style>
12  </head>
13  <body>
14   <p>
15     This should have no border, because negative border is a parser error.
16   </p>
17  </body>
18 </html>