| 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 |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
| 5 <head> |
| 6 |
| 7 <title>CSS Test: min-height - float and overflow</title> |
| 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
| 10 <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> |
| 11 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights
" /> |
| 12 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> |
| 13 <link rel="match" href="max-height-107-ref.xht" /> |
| 14 |
| 15 <meta content="ahem" name="flags" /> |
| 16 <meta content="'min-height' specifies a fixed minimum used height. If the elem
ent requires an horizontal scrollbar, then the horizontal scrollbar height shoul
d be subtracted from the height of its containing block so that the resulting us
ed height continues to honor the declared min-height." name="assert" /> |
| 17 |
| 18 <style type="text/css"><![CDATA[ |
| 19 div |
| 20 { |
| 21 font: 100px/1 Ahem; |
| 22 overflow: auto; |
| 23 width: 200px; |
| 24 } |
| 25 |
| 26 #test-red-overlapped |
| 27 { |
| 28 background-color: red; |
| 29 color: red; |
| 30 float: left; |
| 31 min-height: 200px; |
| 32 } |
| 33 |
| 34 #control-green-overlapping |
| 35 { |
| 36 background-color: green; |
| 37 clear: left; |
| 38 color: green; |
| 39 height: 200px; |
| 40 position: relative; |
| 41 top: -200px; |
| 42 } |
| 43 ]]></style> |
| 44 |
| 45 </head> |
| 46 |
| 47 <body> |
| 48 |
| 49 <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mecha
nism. If it does not, then this test case does not apply to this user agent.</p> |
| 50 |
| 51 <p>Test passes if there is a green square and <strong>no red</strong>.</p> |
| 52 |
| 53 <div id="test-red-overlapped">XXX</div> |
| 54 |
| 55 <div id="control-green-overlapping">XX</div> |
| 56 |
| 57 </body> |
| 58 </html> |
| OLD | NEW |