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 Padding</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/001.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 { background: green; padding: 8px; padding: -8px; display: block; }
11 .test > .inner { background: white; display: block; }
12 </style>
13 </head>
14 <body>
15 <div class="test">
16 <div class="inner">
17 This should have a green border, because negative padding is a parser error.
18 </div>
19 </div>
20 </body>
21 </html>