| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/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' does not compute to 'visible' and 'height' is 'auto' adjust based on t
he line box height</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-bl
ock" /> |
| 7 <meta name="flags" content="ahem" /> |
| 8 <meta name="assert" content="The 'height' is the distance from the topmo
st to the bottommost line box when a block-level non-replaced element is in norm
al flow and 'overflow' does not compute to 'visible'." /> |
| 9 <style type="text/css"> |
| 10 html, body |
| 11 { |
| 12 overflow: scroll; |
| 13 } |
| 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 i
f 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> |
| OLD | NEW |