| 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'</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="" /> |
| 8 <meta name="assert" content="The margin top and bottom used values are '
0' for block-level non-replaced elements in normal flow when 'overflow' does not
compute to 'visible' and margin top and bottom both are 'auto'." /> |
| 9 <style type="text/css"> |
| 10 #div1 |
| 11 { |
| 12 border-bottom: solid orange; |
| 13 border-top: solid orange; |
| 14 width: 1in; |
| 15 } |
| 16 div div |
| 17 { |
| 18 background: blue; |
| 19 margin-bottom: auto; |
| 20 margin-top: auto; |
| 21 } |
| 22 html, body |
| 23 { |
| 24 overflow: scroll; |
| 25 } |
| 26 </style> |
| 27 </head> |
| 28 <body> |
| 29 <p>Test passes if there is no white space between the blue box below and
the orange lines.</p> |
| 30 <div id="div1"> |
| 31 <div>Filler Text</div> |
| 32 </div> |
| 33 </body> |
| 34 </html> |
| OLD | NEW |