| 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 - 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 <meta content="ahem" name="flags" /> |
| 14 <meta content="The max-height property can restrain the used value of height w
hen the used value of height is greater than the declared max-height and not whe
n it is less than the declared max-height and not when it does not exceed the de
clared max-height." name="assert" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div#red-parent |
| 18 { |
| 19 background-color: red; |
| 20 max-height: 400px; |
| 21 overflow: scroll; |
| 22 } |
| 23 |
| 24 div#green-child |
| 25 { |
| 26 background-color: green; |
| 27 color: green; |
| 28 font: 200px/1 Ahem; |
| 29 } |
| 30 ]]></style> |
| 31 |
| 32 </head> |
| 33 |
| 34 <body> |
| 35 |
| 36 <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> |
| 37 |
| 38 <p>Test passes if there is a wide green rectangle across the page; such green
rectangle should have inactive scrollbars. There should be no wide red rectangle
.</p> |
| 39 |
| 40 <div id="red-parent"> |
| 41 <div id="green-child">X</div> |
| 42 </div> |
| 43 |
| 44 </body> |
| 45 </html> |
| OLD | NEW |