tor-browser

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

row-auto-repeat-021.html (1089B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>Auto-fit repeat tracks with fixed size and explicit item placement</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      5 <link rel="match" href="row-auto-repeat-021-ref.html">
      6 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
      7 <style>
      8 .grid-lanes {
      9    display: grid-lanes;
     10    background: gray;
     11    flow-tolerance: 0;
     12    grid-lanes-direction: row;
     13    grid-template-rows: 100px repeat(auto-fit, 100px);
     14    width: 500px;
     15    height: 300px;
     16 }
     17 
     18 .grid-lanes > div {
     19    height: 100%;
     20    width: 100px;
     21 }
     22 </style>
     23 <body>
     24  <div class="grid-lanes">
     25    <!-- Only row 2 should get collapsed -->
     26    <div style="background: lightskyblue; grid-row: 3;">
     27      Number 1
     28    </div>
     29    <div style="background: lightcoral; grid-row: 3;">
     30      Number 2
     31    </div>
     32    <div style="background: lightgreen; grid-row: 3;">
     33      Number 3
     34    </div>
     35    <div style="background: lightpink; grid-row: 3;">
     36      Number 4
     37    </div>
     38    <div style="background: orange; grid-row: 3;">
     39      Number 5
     40    </div>
     41  </div>
     42 </body>
     43 </html>