tor-browser

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

abspos-002.xht (1292B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: Positioning with a relpos ancestor containing block</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      7   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-08 -->
      8   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/023.xml" type="application/xhtml+xml"/>
      9   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos" />
     10   <link rel="match" href="abspos-002-ref.xht" />
     11 
     12   <style type="text/css">
     13    .container { position: relative; background: red; width: 6em;
     14                 border-top: 1em solid blue; }
     15    .test { position: absolute; height: 2em; width: 4em;
     16            background: white; color: green;
     17            border: solid 1em blue;
     18            border-top: none;}
     19   </style>
     20  </head>
     21  <body>
     22   <p>Test passes if there is a hollow blue rectangle.</p>
     23   <div class="container">
     24    <div>
     25     <div>
     26      <div class="test">
     27      </div>
     28     </div>
     29    </div>
     30   </div>
     31  </body>
     32 </html>