min-height-104.xht (1632B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: min-height - space for scrollbar</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/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 name="assert" content="Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars." /> 17 18 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 19 <style type="text/css"><![CDATA[ 20 div#test-red-overlapped 21 { 22 background-color: red; 23 color: red; 24 font: 100px/1 Ahem; 25 min-height: 200px; 26 overflow: auto; 27 width: 200px; 28 } 29 30 div#control-green-overlapping 31 { 32 background-color: green; 33 height: 200px; 34 position: relative; 35 top: -200px; 36 width: 200px; 37 } 38 ]]></style> 39 40 </head> 41 42 <body> 43 44 <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> 45 46 <p>Test passes if there is a green square and <strong>no red</strong>.</p> 47 48 <div id="test-red-overlapped">XXX</div> 49 50 <div id="control-green-overlapping"></div> 51 52 </body> 53 </html>