Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-lanes/item-placement/dense-packing/row-track-reverse-dense-packing-flow-tolerance-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="row-track-reverse-dense-packing-flow-tolerance-002-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
flow-tolerance: 5px;
grid-template-rows: repeat(6, 50px);
grid-auto-flow: dense;
grid-lanes-pack: dense;
grid-lanes-direction: row track-reverse;
}
</style>
<body>
<p>Ensure that row dense-packing honors flow-tolerance for multi-span items with track-reverse. The yellow item should use the first preferred opening in the reversed track direction, spanning tracks 4-5 (running position 0), not tracks 1-2.</p>
<div class="grid-lanes">
<div style="background: lightskyblue; width: 5px; grid-row: 1 / span 2;">1</div>
<div style="background: lightblue; width: 60px; grid-row: 3;">2</div>
<div style="background: darkblue; width: 60px; grid-row: 6;">3</div>
<div style="background: lightsteelblue; width: 20px; grid-row: span 6;">4</div>
<div style="background: yellow; width: 20px; grid-row: span 2;">5</div>
</div>
</body>
</html>