wpt / css / css-grid / grid-lanes / item-placement / dense-packing / column-dense-packing-multi-span-003.html

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

/css/css-grid/grid-lanes/item-placement/dense-packing/column-dense-packing-multi-span-003.html

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="column-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-template-columns: repeat(3, 50px);
    padding: 10px;
    grid-auto-flow: dense;
    grid-lanes-pack: dense;
}
</style>
<body>
  <p>Ensure that dense-packing places items that span more than 1 track correctly into gaps.</p>
  <div class="grid-lanes">
    <div style="background: lightskyblue; height: 20px;" >
      1
    </div>
    <div style="background: lightcoral; height: 20px;" >
      2
    </div>
    <div style="background: lightgreen; height: 40px;">
      3
    </div>
    <div style="background: brown; height: 10px; grid-column: span 3;">
      4
    </div>
    <div style="background:orchid; height: 10px; grid-column: span 2;">
      5
    </div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/item-placement/dense-packing/column-dense-packing-multi-span-003-ref.html

<!DOCTYPE html>
<html>
<style>
.grid {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    padding: 10px;
    grid-auto-flow: dense;
}
</style>
<body>
  <p>Ensure that dense-packing places items that span more than 1 track correctly into gaps.</p>
  <div class="grid">
    <div style="background: lightskyblue; height: 20px;" >
      1
    </div>
    <div style="background: lightcoral; height: 20px;" >
      2
    </div>
    <div style="background: lightgreen; height: 40px;">
      3
    </div>
    <div style="background:orchid; height: 10px; grid-column: span 2; transform: translateY(-20px);">
      5
    </div>
    <div style="background: brown; height: 10px; grid-column: span 3; transform: translateY(-10px);">
      4
    </div>
  </div>
</body>
</html>