tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

max-height-105.xht (1450B)


      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: max-height - oveflow</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite" />
     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="The 'max-height' property can restrain the used value of height when the used value of height is greater than the declared max-height and not when it is less than the declared max-height and not when it does not exceed the declared max-height." name="assert" />
     14 
     15   <style type="text/css"><![CDATA[
     16   div#red-parent
     17   {
     18   background-color: red;
     19   max-height: 400px;
     20   overflow: scroll;
     21   width: 200px;
     22   }
     23 
     24   div#green-child
     25   {
     26   background-color: green;
     27   height: 200px;
     28   }
     29   ]]></style>
     30 
     31  </head>
     32 
     33  <body>
     34 
     35   <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>
     36 
     37   <p>Test passes if there is a green rectangle with inactive scrollbars and no red square.</p>
     38 
     39   <div id="red-parent">
     40     <div id="green-child"></div>
     41   </div>
     42 
     43  </body>
     44 </html>