tor-browser

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

z-index-014.xht (1786B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Z-index: inherit sets a value the same as parent element's value</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6 		<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-07-03 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index" />
      8         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" />
      9 		<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     10 
     11         <meta name="assert" content="The property z-index set to 'inherit' sets a value the same as parent element's computed value." />
     12         <style type="text/css">
     13             #div1
     14             {
     15                 background: green;
     16                 height: 100px;
     17                 left: 0;
     18                 position: absolute;
     19                 top: 0;
     20                 width: 100px;
     21                 z-index: -1;
     22                 z-index: inherit;
     23             }
     24             #div2
     25             {
     26                 background: red;
     27                 height: 100px;
     28                 left: 0;
     29                 position: absolute;
     30                 top: 0;
     31                 width: 100px;
     32             }
     33             #wrapper
     34             {
     35                 position: relative;
     36                 z-index: 1;
     37             }
     38         </style>
     39     </head>
     40     <body>
     41         <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     42         <div id="wrapper">
     43             <div id="div1"></div>
     44             <div id="div2"></div>
     45         </div>
     46     </body>
     47 </html>