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 Blocks - Fall back to Initial containing block</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
7 <meta name="flags" content="">
8 <meta name="assert" content="When there are no positioned ancestors then the initial containing block is used.">
9 <style type="text/css">
10 #div1, #div2
11 {
12 margin: 1in;
13 }
14 #div3
15 {
16 background: blue;
17 height: 1in;
18 left: 0;
19 position: absolute;
20 bottom: 0;
21 width: 1in;
22 }
23 </style>
24 </head>
25 <body>
26 <p>Test passes if the blue box below is in the bottom-left corner of the page.</p>
27 <div id="div1">
28 <div id="div2">
29 <div id="div3"></div>
30 </div>
31 </div>
32 </body>
33 </html>