abspos-007

Positioning blocks inside inline contexts with top:auto

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3 <head>
 4   <title>CSS Test: Positioning blocks inside inline contexts with top:auto</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/009.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos">
 9   <style type="text/css">
10    .container div { height: 1em; width: 10em; }
11    .test { position: absolute; background: green; z-index: 1; }
12    .control { background: red; }
13    .inline { display: inline; }
14   </style>
15  </head>
16  <body>
17   <div class="container">
18    <div class="inline">
19      There should be no red on this page.
20      <div class="test"></div>
21      <div class="control"></div>
22    </div>
23   </div>
24  
25 
26 </body>
27 </html>