wpt / css / css-grid / grid-lanes / item-placement / dense-packing / row-dense-packing-multi-span-001.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/item-placement/dense-packing/row-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-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-template-rows: repeat(4, 50px);
    grid-auto-flow: dense;
    grid-lanes-pack: dense;
}
</style>
<body>
  <p>Ensure that dense-packing places multi-spanning item into highest eligible track opening. The yellow item is the item that should be placed in track opening.</p>
  <div class="grid-lanes">
    <div style="background: lightskyblue; width: 70px;" >
      1
    </div>
    <div style="background: lightblue; width: 20px; grid-row: 4;" >
      2
    </div>
    <div style="background: darkblue; width: 20px; grid-row: 3 / span 2;">
      3
    </div>
    <div style="background: lightsteelblue; width: 20px; grid-row: span 4;" >
      4
    </div>
    <div style="background: yellow; width: 10px; grid-row: span 2;" >
      5
    </div>
  </div>
</body>
</html>

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

<!DOCTYPE html>
<html>
<style>
.grid {
    display: grid;
    grid-template-rows: repeat(4, 50px);
    grid-auto-flow: dense;
}
.flex {
    display: flex;
    flex-direction: row;
}
</style>
<body>
  <p>Ensure that dense-packing places multi-spanning item into highest eligible track opening. The yellow item is the item that should be placed in track opening.</p>
  <div class="grid">
    <div class="flex">
      <div style="background: lightskyblue; width: 70px;" >
        1
      </div>
      <div style="background: lightsteelblue; width: 20px; height: 200px;" >
        4
      </div>
    </div>
    <div style="background: yellow; width: 10px; grid-row: span 2;" >
      5
    </div>
    <div class="flex">
      <div style="background: lightblue; width: 20px; grid-row: 4;" >
        2
      </div>
      <div style="background: darkblue; width: 20px; height: 100px; grid-row: 3; transform: translateY(-50px);">
        3
      </div>
    </div>
  </div>
</body>
</html>