tor-browser

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

abspos-overflow-001.xht (1212B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: Absolutely positioned children of overflow: scroll</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-14 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/overflow/001.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow-clipping" />
      9   <link rel="match" href="abspos-overflow-001-ref.xht" />
     10 
     11   <style type="text/css">
     12    html, body { margin: 0; border: 0; padding: 0; line-height: 1.25;}
     13    .control { color: yellow; background: red; width: 10em; }
     14    .overflow { width: 8em; height: 8em; overflow: scroll; }
     15    .positioned { color: white; background: green; position: absolute; top: 0; left: 0; width: 10em; }
     16   </style>
     17  </head>
     18  <body>
     19   <div class="control">FAIL</div>
     20   <p>Ignore the scrollbars below.</p>
     21   <div class="overflow">
     22    <div class="positioned">PASS</div>
     23   </div>
     24  </body>
     25 </html>