tor-browser

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

z-index-abspos-008.xht (1472B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: z-index</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-07-03 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/z-index/008.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" />
      9   <link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order"/>
     10 
     11   <style type="text/css">
     12    div { position: absolute; width: 4em; height: 4em; }
     13    .a { top: 1em; left: 1em; width: 12em; height: 12em; background: gray; }
     14    .b { top: 1em; left: 4em; background: blue; }
     15    .d { top: 4em; left: 7em; background: orange; }
     16    .e { top: 3em; left: -3em; background: yellow; z-index: 1; }
     17    .c { top: 3em; left: -3em; background: lime; z-index: 2; }
     18    .text { top: 14em; width: 30em; }
     19   </style>
     20  </head>
     21  <body>
     22   <div class="a">
     23    <div class="b">
     24     <div class="c">
     25     </div>
     26    </div>
     27    <div class="d">
     28     <div class="e">
     29     </div>
     30    </div>
     31   </div>
     32   <div class="text">The squares should overlap each other clockwise, so that the
     33   top one (blue) is the bottommost and the one to its left (green) is the
     34   topmost.</div>
     35  </body>
     36 </html>