tor-browser

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

z-index-applies-to-014.xht (1685B)


      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-table'</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 'inline-table'." />
      9         <style type="text/css">
     10             div
     11             {
     12                 line-height: 0;
     13             }
     14             #table
     15             {
     16                 background: green;
     17                 display: inline-table;
     18                 table-layout: fixed;
     19                 z-index: 1;
     20             }
     21             #row
     22             {
     23                 display: table-row;
     24             }
     25             #cell
     26             {
     27                 display: table-cell;
     28             }
     29             #zindex
     30             {
     31                 background: red;
     32                 top: -1in;
     33             }
     34             #table, #zindex
     35             {
     36                 height: 1in;
     37                 position: relative;
     38                 width: 1in;
     39             }
     40         </style>
     41     </head>
     42     <body>
     43         <p>Test passes if there is no red visible on the page.</p>
     44         <div>
     45             <div id="table">
     46                 <div id="row">
     47                     <div id="cell"></div>
     48                 </div>
     49             </div>
     50             <div id="zindex"></div>
     51         </div>
     52     </body>
     53 </html>