tor-browser

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

column-reverse-dense-packing-multi-span-003-ref.html (969B)


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