abspos-containing-block-009

Containing block for absolute positioning

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: Containing block for absolute positioning</title>
 5     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 6     <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
 8     <style type="text/css">
 9       html { border: 100px solid red; background: red; }
10       div { background: white; color: green; position: absolute;
11             bottom: 0; left: 0; width: 100%; height: 100%; }
12     </style>
13   </head>
14   <body>
15     <div>
16       There should be no red on this page.
17     </div>
18   </body>
19 </html>