tor-browser

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

z-index-applies-to-008.xht (1385B)


      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 inline</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="flags" content="ahem" />
      9         <meta name="assert" content="The 'z-index' property applies to elements with a display of inline." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 display: inline;
     15                 font: 20px/1em Ahem;
     16                 position: relative;
     17             }
     18             #div1
     19             {
     20                 background: green;
     21                 color: green;
     22             }
     23             #zindex
     24             {
     25                 background: red;
     26                 color: red;
     27                 left: -5em;
     28                 z-index: -1;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if there is no red visible on the page.</p>
     34         <div id="div1">XXXXX</div><div id="zindex">XXXXX</div>
     35     </body>
     36 </html>