tor-browser

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

grid-layout-grid-span.html (1093B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Grid Layout Test: grid span</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/#grid-span">
      7    <link rel="match" href="../reference/grid-layout-basic-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      }
     24      .a {
     25        background: blue;
     26        grid-column: 1 / span 2;
     27        grid-row: 1;
     28      }
     29      .b {
     30        background: yellow;
     31        grid-column: 3;
     32        grid-row: 1;
     33      }
     34    </style>
     35  </head>
     36  <body>
     37    <p id="caseTitle">The test passes if it has the same visual effect as reference.</p>
     38    <div id="grid">
     39      <div class="a">&nbsp;</div>
     40      <div class="b">&nbsp;</div>
     41    </div>
     42  </body>
     43 </html>