containing-block-023.xht (1426B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-05-16 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details" /> 8 <link rel="match" href="containing-block-023-ref.xht" /> 9 10 <meta name="assert" content="When there are no positioned ancestors, then the initial containing block is used." /> 11 <style type="text/css"> 12 body {margin: 8px;} 13 14 #div1, #div2 15 { 16 margin: 1in; 17 } 18 #div3 19 { 20 background: blue; 21 height: 1in; 22 left: 0; 23 position: absolute; 24 bottom: 0; 25 width: 1in; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if a blue square is at the <strong>bottom-left corner</strong> of the page.</p> 31 <div id="div1"> 32 <div id="div2"> 33 <div id="div3"></div> 34 </div> 35 </div> 36 </body> 37 </html>