wpt / css / css-grid / grid-lanes / item-placement / dense-packing / row-dense-packing-multi-span-002.html

Status: FAIL | Duration: 13ms | 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-002.html

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="row-dense-packing-multi-span-002-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: 10px 10px 20px 15px 5px;
    grid-auto-flow: dense;
    grid-lanes-pack: dense;
}
</style>
<body>
  <p>Ensure that dense-packing with multi-span items are placed into tracks with the same used size and the same number of tracks.</p>
  <div class="grid-lanes">
    <div style="background: lightskyblue; width: 20px; grid-row: 3" >
      1
    </div>
    <div style="background: lightblue; width: 20px; grid-row: span 5" >
      2
    </div>
    <div style="background: darkblue; width: 20px; grid-row: span 3;">
      3
    </div>
    <div style="background: yellow; width: 20px; grid-row: span 2;" >
      4
    </div>
  </div>
</body>
</html>

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

<!DOCTYPE html>
<html>
<style>
.grid {
    display: grid;
    grid-template-rows: 10px 10px 20px 15px 5px;
    grid-auto-flow: column;
}
.flex {
    display: flex;
    flex-direction: row;
}
</style>
<body>
  <p>Ensure that dense-packing with multi-span items are placed into tracks with the same used size and the same number of tracks.</p>
  <div class="grid">
    <div class="flex">
      <div style="background: yellow; width: 20px; height: 20px;" >
        4
      </div>
      <div style="background: lightblue; width: 20px; height: 60px;" >
        2
      </div>
      <div style="background: darkblue; width: 20px; height: 40px;">
        3
      </div>
    </div>
    <div style="background: lightskyblue; width: 20px; height: 20px; transform: translateY(10px);" >
      1
    </div>
  </div>
</body>
</html>