containing-block-029.xht (1517B)
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 for generated content</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-029-ref.xht" /> 9 10 <meta name="assert" content="Principal block boxes establish a containing block for generated content." /> 11 <style type="text/css"> 12 div 13 { 14 background: blue; 15 height: 1in; 16 position: absolute; 17 width: 1in; 18 } 19 div div:before 20 { 21 content: "."; 22 background: orange; 23 bottom: 0; 24 display: block; 25 height: 0.25in; 26 position: absolute; 27 right: 0; 28 width: 0.25in; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if a small orange square (with a black dot in its middle) is in the bottom right corner of the blue square.</p> 34 <div> 35 <div></div> 36 </div> 37 </body> 38 </html>