tor-browser

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

row-auto-repeat-016.html (1038B)


      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-016-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: repeat(auto-fit, 100px);
     14    width: 200px;
     15    height: 500px;
     16 }
     17 
     18 .grid-lanes > div {
     19    height: 100%;
     20    width: 100px;
     21 }
     22 </style>
     23 <body>
     24  <div class="grid-lanes">
     25    <div style="background: lightskyblue; grid-row: 1;">
     26      Number 1
     27    </div>
     28    <div style="background: lightcoral; grid-row: 3;">
     29      Number 2
     30    </div>
     31    <div style="background: lightgreen; grid-row: 5;">
     32      Number 3
     33    </div>
     34    <div style="background: lightpink; grid-row: 1;">
     35      Number 4
     36    </div>
     37    <div style="background: orange; grid-row: 3;">
     38      Number 5
     39    </div>
     40  </div>
     41 </body>
     42 </html>