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/column-dense-packing-flow-tolerance-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="column-dense-packing-flow-tolerance-003-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(3, 50px);
grid-auto-flow: dense;
grid-lanes-pack: dense;
}
</style>
<body>
<p>Ensure that dense packing does not replace auto-placement with a lower opening within flow tolerance of the auto-placement position. The yellow item should remain at its auto-placement position in the third column at 0px instead of using the first-column opening at 5px.</p>
<div class="grid-lanes">
<div style="background: lightskyblue; height: 5px; grid-column: 1;">1</div>
<div style="background: lightgreen; height: 10px; grid-column: 2;">2</div>
<div style="background: lightsteelblue; height: 10px; grid-column: 1 / span 2;">3</div>
<div style="background: yellow; height: 5px;">4</div>
</div>
</body>
</html>