Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<html>
<link rel="match" href="column-fill-reverse-dense-packing-flow-tolerance-001-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
flow-tolerance: 5px;
grid-template-columns: repeat(6, 50px);
grid-auto-flow: dense;
grid-lanes-pack: dense;
grid-lanes-direction: column fill-reverse;
}
</style>
<body>
<p>Ensure that dense-packing honors flow-tolerance for multi-span items with fill-reverse. The yellow item should be placed in the flow-tolerance-preferred opening spanning tracks 1-2 (55px from the top after reversal), not the strictly-highest opening spanning tracks 4-5.</p>
<div class="grid-lanes">
<div style="background: lightskyblue; height: 5px; grid-column: 1 / span 2;">1</div>
<div style="background: lightblue; height: 60px; grid-column: 3;">2</div>
<div style="background: darkblue; height: 60px; grid-column: 6;">3</div>
<div style="background: lightsteelblue; height: 20px; grid-column: span 6;">4</div>
<div style="background: yellow; height: 20px; grid-column: span 2;">5</div>
</div>
</body>
</html>