block-non-replaced-height-005.xht (1970B)
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: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto' adjust based on the line box height</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-06-26 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> 8 <link rel="match" href="block-non-replaced-height-005-ref.xht" /> 9 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="The 'height' is the distance from the topmost to the bottommost line box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 div 15 { 16 position: relative; 17 } 18 #div1 19 { 20 background: red; 21 width: 200px; 22 } 23 span 24 { 25 color: blue; 26 display: inline; 27 font: 100px/1 Ahem; 28 } 29 #div2 30 { 31 background: orange; 32 height: 200px; 33 left: 200px; 34 position: absolute; 35 top: 0; 36 width: 200px; 37 } 38 </style> 39 </head> 40 <body> 41 <p>Test passes if the blue and orange squares have the same height and if there is <strong>no red</strong>.</p> 42 <div> 43 <div id="div1"> 44 <span>XX XX</span> 45 </div> 46 <div id="div2"></div> 47 </div> 48 </body> 49 </html>