wpt / css / css-grid / grid-lanes / item-placement / row-negative-margin-001.html

Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-grid/grid-lanes/item-placement/row-negative-margin-001.html

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="row-negative-margin-001-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
    display: grid-lanes;
    flow-tolerance: 0;
    grid-template-rows: auto;
}
</style>
<body>
  <p>When an item with negative margins are placed, ensure the items after it are placed immediately behind it</p>
  <div class="grid-lanes">
    <div style="background: aquamarine; width: 50px;" >
      item 1
    </div>
    <div style="background: aquamarine; width: 50px;" >
      item 1
    </div>
    <div style="background: aquamarine; width: 50px;" >
      item 1
    </div>
    <div style="background: lightblue; width: 50px; margin-left: -100px;" >
      item 2
    </div>
    <div style="background: lightpink; width: 50px;">
      item 3
    </div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/item-placement/row-negative-margin-001-ref.html

<!DOCTYPE html>
<html>
<body>
  <p>When an item with negative margins are placed, ensure the items after it are placed immediately behind it</p>
  <div style="display: flex;">
    <div style="background: aquamarine; width: 50px;" >
      item 1
    </div>
    <div style="background: lightblue; width: 50px;" >
      item 2
    </div>
    <div style="background: aquamarine; width: 50px;" >
      item 1
    </div>
    <div style="background: lightpink; width: 50px;">
      item 3
    </div>
  </div>
</body>
</html>