border-width-010

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/004.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    .test { border-color: green; border-width: 8px; border-style: solid; border: red solid -1px; display: block; }
11   </style>
12  </head>
13  <body>
14   <div class="test">
15     This should have a green border, because negative border is a parser error.
16   </div>
17  </body>
18 </html>