| 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 - space for scrollbar</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/visufx.html#overflow" /> |
| 12 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights
" /> |
| 13 <link rel="match" href="max-height-110-ref.xht" /> |
| 14 |
| 15 <meta content="ahem" name="flags" /> |
| 16 <meta content="Any space taken up by the scrollbars should be taken out of (su
btracted from the dimensions of) the containing block formed by the element with
the scrollbars." name="assert" /> |
| 17 |
| 18 <style type="text/css"><![CDATA[ |
| 19 div#test-red-overlapped |
| 20 { |
| 21 background-color: red; |
| 22 color: red; |
| 23 font: 200px/1 Ahem; |
| 24 max-height: 200px; |
| 25 overflow: scroll; |
| 26 } |
| 27 |
| 28 div#control-green-overlapping |
| 29 { |
| 30 background-color: green; |
| 31 height: 200px; |
| 32 position: relative; |
| 33 top: -200px; |
| 34 } |
| 35 ]]></style> |
| 36 |
| 37 </head> |
| 38 |
| 39 <body> |
| 40 |
| 41 <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> |
| 42 |
| 43 <p>Test passes if there is a wide green rectangle across the page and <strong>
no red</strong>.</p> |
| 44 |
| 45 <div id="test-red-overlapped">X</div> |
| 46 |
| 47 <div id="control-green-overlapping"></div> |
| 48 |
| 49 </body> |
| 50 </html> |
| OLD | NEW |