| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Absolutely positioned inline-block replaced element wit
h its height set to a percentage and 'bottom' set to 'auto'</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-08-31 --> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-repla
ced-height" /> |
| 8 <link rel="match" href="absolute-replaced-height-012-ref.xht" /> |
| 9 |
| 10 <meta name="flags" content="" /> |
| 11 <meta name="assert" content="An absolutely positioned inline-block repla
ced element with its height set to a percentage is resolvable if and when its co
ntaining block height is explicitly specified and computable." /> |
| 12 <style type="text/css"> |
| 13 #div1 |
| 14 { |
| 15 position: relative; |
| 16 height: 2in; |
| 17 } |
| 18 div div |
| 19 { |
| 20 border: solid green; |
| 21 height: 1in; |
| 22 position: absolute; |
| 23 top: 1in; |
| 24 width: 300px; |
| 25 } |
| 26 iframe |
| 27 { |
| 28 border: solid red; |
| 29 bottom: auto; |
| 30 position: absolute; |
| 31 top: 1in; |
| 32 width: auto; |
| 33 } |
| 34 </style> |
| 35 </head> |
| 36 <body> |
| 37 <p>Test passes if there is <strong>no red</strong>.</p> |
| 38 <div id="div1"> |
| 39 <iframe height="50%"></iframe> |
| 40 <div></div> |
| 41 </div> |
| 42 </body> |
| 43 </html> |
| OLD | NEW |