tor-browser

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

column-negative-margin-001.html (935B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-3">
      4 <link rel="match" href="column-negative-margin-001-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: 50px;
     11 }
     12 </style>
     13 <body>
     14  <p>When an item with negative margins are placed, ensure the items after it are placed immediately behind it</p>
     15  <div class="grid-lanes">
     16    <div style="background: aquamarine; height: 50px;" >
     17      item 1
     18    </div>
     19    <div style="background: aquamarine; height: 50px;" >
     20      item 1
     21    </div>
     22    <div style="background: aquamarine; height: 50px;" >
     23      item 1
     24    </div>
     25    <div style="background: lightblue; height: 50px; margin-top: -100px;" >
     26      item 2
     27    </div>
     28    <div style="background: lightpink; height: 50px;">
     29      item 3
     30    </div>
     31  </div>
     32 </body>
     33 </html>