tor-browser

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

grid-z-axis-ordering-overlapped-items-002.html (1241B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: 'z-index' property controls the grid items stacking order</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/grid-filled-blue-yellow-green-overlapped-100px-squares.html">
      7 <meta name="flags" content="ahem">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10  #grid {
     11    display: grid;
     12    font: 100px/1 Ahem;
     13    grid-template-columns: 25px 25px 25px 25px;
     14    grid-template-rows: 25px 25px 25px 25px;
     15  }
     16 
     17  #blue {
     18    color: blue;
     19    z-index: 1;
     20    grid-column: 1;
     21    grid-row: 1;
     22  }
     23 
     24  #yellow {
     25    color: yellow;
     26    z-index: 5;
     27    grid-column: 2;
     28    grid-row: 2;
     29  }
     30 
     31  #green {
     32    color: green;
     33    z-index: 10;
     34    grid-column: 3;
     35    grid-row: 3;
     36  }
     37 </style>
     38 <p>Test passes if there are 3 filled squares with the same size, and <strong>green</strong> is overlapping <strong>yellow</strong> which is overlapping <strong>blue</strong>.</p>
     39 
     40 <div id="grid">
     41  <div id="green">G</div>
     42  <div id="yellow">Y</div>
     43  <div id="blue">B</div>
     44 </div>