tor-browser

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

row-reverse-dense-packing-002.html (962B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <link rel="match" href="row-reverse-dense-packing-002-ref.html">
      5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
      6 <style>
      7 .grid-lanes {
      8    display: grid-lanes;
      9    item-tolerance: 0;
     10    grid-template-rows: repeat(4, 50px);
     11    gap: 10px;
     12    grid-auto-flow: dense;
     13    grid-lanes-direction: row-reverse;
     14 }
     15 </style>
     16 <body>
     17 <p>Test that we always prioritize the highest position in "open" tracks even if there is a track opening available that is lower.</p>
     18 <div class="grid-lanes">
     19  <div style="background: lavender; width: 60px; grid-row: 3;">
     20    1
     21  </div>
     22  <div style="background: lightpink; grid-row: 1 / span 3; width: 10px;">
     23    2
     24  </div>
     25  <!-- The auto-placement cursor is at line 4 after placing item 2, so item 3 should go into track 4. -->
     26  <div style="background: lightgreen; width: 15px;">
     27    3
     28  </div>
     29 </div>
     30 </body>
     31 </html>