inlines-020

CSS Inline Box Model: Empty inlines near the top of the document

WeasyPrint

This browser

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 Inline Box Model: Empty inlines near the top of the document</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/box/inline/020.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes">
 8   <style type="text/css">
 9    p, body, html { margin: 0; padding: 0; color: green; font: 20px/1 serif; }
10    div { display: inline; border-left: solid lime; }
11    .fail { background: red; color: yellow; width: 4em; }
12    .pass { background: white; color: green; position: absolute; top: 1em; }
13   </style>
14  </head>
15  <body>
16   <div></div>
17   <p class="fail">FAIL</p>
18   <p class="pass">This line should be green (with a green vertical bar on the previous line).</p>
19  </body>
20 </html>