containing-block-028.xht (1356B)
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: Principal block box establishes the 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-03-11 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-boxes" /> 8 <link rel="match" href="containing-block-028-ref.xht" /> 9 10 <meta name="assert" content="Principal block boxes establish a containing block for descendant boxes." /> 11 <style type="text/css"> 12 div 13 { 14 background: blue; 15 height: 1in; 16 position: absolute; 17 width: 1in; 18 } 19 div div 20 { 21 background: orange; 22 bottom: 0; 23 height: 0.25in; 24 right: 0; 25 width: 0.25in; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if a small orange square is in the bottom right corner of the blue square.</p> 31 <div> 32 <div></div> 33 </div> 34 </body> 35 </html>