containing-block-030.xht (1105B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: Content is not confined by containing blocks</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#containing-block" /> 11 <link rel="match" href="containing-block-030-ref.xht" /> 12 13 <meta content="may" name="flags" /> 14 <meta content="Content may overflow containing blocks." name="assert" /> 15 16 <style type="text/css"><![CDATA[ 17 div#containing-block 18 { 19 background-color: blue; 20 height: 1in; 21 padding-left: 5px; 22 width: 1in; 23 } 24 25 div#sole-child-with-taller-content 26 { 27 background-color: orange; 28 height: 2in; 29 width: 0.5in; 30 } 31 ]]></style> 32 </head> 33 34 <body> 35 36 <p>Test passes if the orange rectangle is within or overflows below and outside of the blue square.</p> 37 38 <div id="containing-block"> 39 <div id="sole-child-with-taller-content"></div> 40 </div> 41 42 </body> 43 </html>