tor-browser

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

grid-inline-z-axis-ordering-002.html (1076B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: 'z-index' property controls the z-axis order of grid items within an inline grid</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#z-order" title="4.4. Z-axis Ordering: the z-index property">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      7 <meta name="flags" content="ahem">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10  #inline-grid {
     11    display: inline-grid;
     12    font: 100px/1 Ahem;
     13  }
     14 
     15  #test-item-overlapping-green {
     16    color: green;
     17  }
     18 
     19  #reference-item-overlapped-red {
     20    color: red;
     21    z-index: -1;
     22  }
     23 
     24  .first-row-first-column {
     25    grid-area: 1 / 1;
     26  }
     27 </style>
     28 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     29 
     30 <div id="inline-grid">
     31  <div id="test-item-overlapping-green" class="first-row-first-column">G</div>
     32  <div id="reference-item-overlapped-red" class="first-row-first-column">R</div>
     33 </div>