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

Status: FAIL | Duration: 11ms | 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-001.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-001-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(4, 50px);
}
</style>
<body>
<p>Ensure that dense-packing places multi-spanning item into highest eligible track opening. The yellow item should be placed in track opening.</p>
<div class="grid-lanes">
  <div style="background: lightskyblue; width: 70px;" >
    1
  </div>
  <div style="background: lightblue; width: 15px; grid-row: 1;" >
    2
  </div>
  <div style="background: darkblue; width: 20px; grid-row: 1 / span 2;">
    3
  </div>
  <div style="background: yellow; width: 10px; grid-row: span 2;" >
    4
  </div>
  <div style="background: lightblue; width: 70px;" >
    5
  </div>
  <div style="background: darkblue; width: 10px; grid-row: span 3;">
    6
  </div>
  <div style="background: yellow; width: 10px; grid-row: span 2;" >
    7
  </div>
  <!-- This item should be placed in Track 2's second track opening, since that is "start-most" location, as opposed to its auto-placed location in Track 1. -->
  <div style="background: yellow; width: 10px;" >
    8
  </div>
</div>
</body>
</html>

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

<!DOCTYPE html>
<html>
<style>
.grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-rows: repeat(4, 50px);
  grid-template-columns: repeat(3, min-content);
}
</style>
<body>
<p>Ensure that dense-packing places multi-spanning item into highest eligible track opening. The yellow item should be placed in track opening.</p>
<div class="grid">
  <div style="background: lightskyblue; width: 70px; grid-row: 4;" >
    1
  </div>
  <div style="background: lightblue; width: 15px; grid-row: 1;" >
    2
  </div>
  <div style="background: yellow; width: 10px; grid-row: 2 / span 2;" >
    4
  </div>
  <div style="background: darkblue; width: 20px; grid-row: 1 / span 2; transform: translateX(-55px);">
    3
  </div>
  <div style="background: lightblue; width: 70px; grid-row: 3; transform: translateX(-60px);" >
    5
  </div>
  <div style="background: darkblue; width: 10px; grid-row: 2 / span 3; grid-column: 3; transform: translateX(-60px);">
    6
  </div>
  <div style="background: yellow; width: 10px; grid-row: 1 / span 2; grid-column: 3; transform: translateX(-105px);" >
    7
  </div>
  <div style="background: yellow; width: 10px; grid-row: 2; transform: translateX(-105px);" >
    8
  </div>
</div>
</body>
</html>