tor-browser

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

row-reverse-dense-packing-multi-span-003-ref.html (1000B)


      1 <!DOCTYPE html>
      2 <html>
      3 <style>
      4 .grid {
      5  display: grid;
      6  grid-auto-flow: dense;
      7  grid-auto-columns: min-content;
      8  grid-template-rows: repeat(5, 50px);
      9 }
     10 </style>
     11 <body>
     12 <p>Ensure that dense-packing with multi-span items follows the grid-lanes dense packing algorithm.</p>
     13 <div class="grid">
     14  <div style="background: brown; width: 80px; grid-row: 5;"></div>
     15  <div style="background: brown; width: 60px; grid-row: 4;"></div>
     16  <div style="background: brown; width: 40px; grid-row: 3;"></div>
     17  <div style="background: brown; width: 30px; grid-row: 2;"></div>
     18  <div style="background: brown; width: 20px;"></div>
     19  <div style="background: yellow; width: 20px; grid-row: 1 / span 4; transform: translateX(-20px);"></div>
     20  <div style="background: brown; width: 20px; grid-row: 1 / span 5; transform: translateX(-20px);"></div>
     21  <div style="background: pink; width: 30px; grid-row: 2 / span 4; transform: translateX(-20px);">
     22    Item that should not end up in gap.
     23  </div>
     24 </div>
     25 </body>
     26 </html>