tor-browser

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

z-index-applies-to-009.xht (1257B)


      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 applied to element with 'display' set to block</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" />
      8         <meta name="assert" content="The 'z-index' property applies to elements with a display of block." />
      9         <style type="text/css">
     10             span
     11             {
     12                 background: green;
     13                 display: block;
     14                 z-index: 1;
     15             }
     16             #zindex
     17             {
     18                 background: red;
     19                 top: -1in;
     20             }
     21             span, #zindex
     22             {
     23                 height: 1in;
     24                 position: relative;
     25                 width: 1in;
     26             }
     27         </style>
     28     </head>
     29     <body>
     30         <p>Test passes if there is no red visible on the page.</p>
     31         <div>
     32             <span></span>
     33         </div>
     34         <div id="zindex"></div>
     35     </body>
     36 </html>