tor-browser

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

column-dense-packing-multi-span-004.html (1135B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <link rel="match" href="column-dense-packing-multi-span-004-ref.html">
      5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
      6 <style>
      7 .grid-lanes {
      8    display: grid-lanes;
      9    flow-tolerance: 0;
     10    grid-template-columns: repeat(5, 50px);
     11    grid-auto-flow: dense;
     12 }
     13 </style>
     14 <body>
     15  <p>Ensure that dense-packing with multi-span items follows the grid-lanes dense packing algorithm.</p>
     16  <div class="grid-lanes">
     17    <div style="background: brown; height: 80px;"></div>
     18    <div style="background: brown; height: 60px;"></div>
     19    <div style="background: brown; height: 40px;"></div>
     20    <div style="background: brown; height: 30px;"></div>
     21    <div style="background: brown; height: 20px;"></div>
     22    <div style="background: brown; height: 20px; grid-column: span 5;"></div>
     23    <div style="background: pink; height: 30px; grid-column: span 4;">Item that should not end up in gap.</div>
     24    <div style="background: yellow; height: 20px; grid-column: span 4;">Item that should end up in gap.</div>
     25  </div>
     26 </body>
     27 </html>