tor-browser

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

grid-layout-z-order-a.html (1152B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Grid Layout Test: z order</title>
      5    <link rel="author" title="Leo Deng" href="mailto:myst.dg@gmail.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-grid-1/#z-order">
      7    <link rel="match" href="../reference/grid-layout-z-order-ref.html">
      8    <meta name="assert" content="the layout should behave the same as reference.">
      9    <style>
     10      body {
     11        margin: 0;
     12        padding: 0;
     13      }
     14      #caseTitle {
     15        margin: 10px;
     16        height: 40px;
     17      }
     18      #grid {
     19        width: 150px;
     20        background: #eee;
     21        display: grid;
     22        grid-template-columns: 50px 50px 50px;
     23        color:white;
     24      }
     25      .a {
     26        background: blue;
     27        grid-row: 1;
     28        grid-column: 1 / span 2;
     29        z-index:10
     30      }
     31      .b {
     32        background: yellow;
     33        grid-row: 1;
     34        grid-column: 2 / span 2;
     35        z-index:1
     36      }
     37    </style>
     38  </head>
     39  <body>
     40    <p id="caseTitle">The test passes if it has the same visual effect as reference.</p>
     41    <div id="grid">
     42      <div class="b">down</div>
     43      <div class="a">up</div>
     44    </div>
     45  </body>
     46 </html>