| 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: max-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/visuren.html#floats" /> |
| 13 <meta content="ahem" name="flags" /> |
| 14 <meta content="" name="assert" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div |
| 18 { |
| 19 color: blue; |
| 20 float: left; |
| 21 font: 200px/1 Ahem; |
| 22 max-height: 200px; |
| 23 overflow: scroll; |
| 24 } |
| 25 ]]></style> |
| 26 |
| 27 </head> |
| 28 |
| 29 <body> |
| 30 |
| 31 <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> |
| 32 |
| 33 <p>Test passes if there is a blue rectangle with scrollbars.</p> |
| 34 |
| 35 <div>X</div> |
| 36 |
| 37 </body> |
| 38 </html> |
| OLD | NEW |