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

Status: FAIL | Duration: 14ms | 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-004.html

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="row-dense-packing-multi-span-004-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 in grid-lanes only places items with specified tracks into track openings in those same specified tracks.</p>
  <div class="grid-lanes">
    <div style="background: brown; width: 20px; grid-row: span 2;"></div>
    <div style="background: darkgoldenrod; width: 20px; grid-row: span 4;"></div>
    <div style="background: tan; width: 40px; grid-row: 3 / span 2;"></div>
    <div style="background: brown; width: 20px; grid-row: span 4;"></div>
    <div style="background: yellow; width: 20px; grid-row: 1 / span 2;"></div>
    <div style="background: pink; width: 20px; grid-row: span 2;"></div>
  </div>
</body>
</html>

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

<!DOCTYPE html>
<html>
<style>
.grid {
    display: grid;
    grid-template-rows: repeat(4, 50px);
    grid-template-columns: repeat(2, 20px) 40px repeat(2, 20px);
    grid-auto-flow: column;
}
</style>
<body>
  <p>Ensure that dense-packing in grid-lanes only places items with specified tracks into track openings in those same specified tracks.</p>
  <div class="grid">
    <div style="background: brown; width: 20px; grid-row: span 2;"></div>
    <div style="background: pink; width: 20px; grid-row: span 2;"></div>
    <div style="background: darkgoldenrod; width: 20px; grid-row: span 4;"></div>
    <div style="background: yellow; width: 20px; grid-row: 1 / span 2;"></div>
    <div style="background: tan; width: 40px; grid-row: 3 / span 2;"></div>
    <div style="background: brown; width: 20px; grid-row: span 4;"></div>
  </div>
</body>
</html>