tor-browser

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

row-negative-margin-001.html (956B)


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