| 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: Floated non-replaced element with 'margin-top', margin-
bottom' set to 'auto' and 'height' relying on the descendants</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#block-roo
t-margin" /> |
| 7 <link rel="match" href="float-non-replaced-height-001-ref.xht" /> |
| 8 |
| 9 <meta name="flags" content="" /> |
| 10 <meta name="assert" content="If 'height' is 'auto' on an floated non-rep
laced element then the 'height' depends on the descendants." /> |
| 11 <style type="text/css"> |
| 12 #div1 |
| 13 { |
| 14 position: relative; |
| 15 } |
| 16 #div2 |
| 17 { |
| 18 background: blue; |
| 19 float: left; |
| 20 } |
| 21 #div2 div, #div3 |
| 22 { |
| 23 height: 1in; |
| 24 width: 1in; |
| 25 } |
| 26 #div3 |
| 27 { |
| 28 background: orange; |
| 29 left: 1in; |
| 30 position: absolute; |
| 31 top: 0; |
| 32 } |
| 33 </style> |
| 34 </head> |
| 35 <body> |
| 36 <p>Test passes if the blue and orange squares have the same height.</p> |
| 37 <div id="div1"> |
| 38 <div id="div2"> |
| 39 <div></div> |
| 40 </div> |
| 41 <div id="div3"></div> |
| 42 </div> |
| 43 </body> |
| 44 </html> |
| OLD | NEW |