| 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: Inline-block non-replaced element with 'margin-top', ma
rgin-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="reviewer" title="Gérard Talbot" href="http://www.gtal
bot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-10 --> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-roo
t-margin" /> |
| 8 <link rel="match" href="height-percentage-001-ref.xht" /> |
| 9 |
| 10 <meta name="flags" content="" /> |
| 11 <meta name="assert" content="If 'height' is 'auto' on an inline-block no
n-replaced element then the 'height' depends on the descendants." /> |
| 12 <style type="text/css"> |
| 13 #div1 |
| 14 { |
| 15 position: relative; |
| 16 } |
| 17 #div2 |
| 18 { |
| 19 background: blue; |
| 20 display: inline-block; |
| 21 } |
| 22 #div2 div, #div3 |
| 23 { |
| 24 height: 1in; |
| 25 width: 1in; |
| 26 } |
| 27 #div3 |
| 28 { |
| 29 background: orange; |
| 30 left: 1in; |
| 31 position: absolute; |
| 32 top: 0; |
| 33 } |
| 34 </style> |
| 35 </head> |
| 36 <body> |
| 37 <p>Test passes if the blue and orange squares have the <strong>same heig
ht</strong>.</p> |
| 38 <div id="div1"> |
| 39 <div id="div2"> |
| 40 <div></div> |
| 41 </div> |
| 42 <div id="div3"></div> |
| 43 </div> |
| 44 </body> |
| 45 </html> |
| OLD | NEW |