wpt / css / css-grid / grid-lanes / tentative / item-placement / row-reverse-dense-packing-multi-span-003.html

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

/css/css-grid/grid-lanes/tentative/item-placement/row-reverse-dense-packing-multi-span-003.html

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="row-reverse-dense-packing-multi-span-003-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
  display: grid-lanes;
  flow-tolerance: 0;
  grid-auto-flow: dense;
  grid-lanes-pack: dense;
  grid-lanes-direction: row track-reverse;
  grid-template-rows: repeat(5, 50px);
}
</style>
<body>
<p>Ensure that dense-packing with multi-span items follows the grid-lanes dense packing algorithm.</p>
<div class="grid-lanes">
  <div style="background: brown; width: 80px;"></div>
  <div style="background: brown; width: 60px;"></div>
  <div style="background: brown; width: 40px;"></div>
  <div style="background: brown; width: 30px;"></div>
  <div style="background: brown; width: 20px;"></div>
  <div style="background: brown; width: 20px; grid-row: span 5;"></div>
  <div style="background: pink; width: 30px; grid-row: span 4;">
      Item that should not end up in gap.
  </div>
  <div name="item_that_should_end_up_in_gap" style="background: yellow; width: 20px; grid-row: span 4;"></div>
</div>
</body>
</html>

/css/css-grid/grid-lanes/tentative/item-placement/row-reverse-dense-packing-multi-span-003-ref.html

<!DOCTYPE html>
<html>
<style>
.grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-columns: min-content;
  grid-template-rows: repeat(5, 50px);
}
</style>
<body>
<p>Ensure that dense-packing with multi-span items follows the grid-lanes dense packing algorithm.</p>
<div class="grid">
  <div style="background: brown; width: 80px; grid-row: 5;"></div>
  <div style="background: brown; width: 60px; grid-row: 4;"></div>
  <div style="background: brown; width: 40px; grid-row: 3;"></div>
  <div style="background: brown; width: 30px; grid-row: 2;"></div>
  <div style="background: brown; width: 20px;"></div>
  <div style="background: yellow; width: 20px; grid-row: 1 / span 4; transform: translateX(-20px);"></div>
  <div style="background: brown; width: 20px; grid-row: 1 / span 5; transform: translateX(-20px);"></div>
  <div style="background: pink; width: 30px; grid-row: 2 / span 4; transform: translateX(-20px);">
    Item that should not end up in gap.
  </div>
</div>
</body>
</html>