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/tentative/item-placement/column-reverse-dense-packing-multi-span-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="column-reverse-dense-packing-multi-span-003-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
item-tolerance: 0;
grid-auto-flow: dense;
grid-lanes-direction: column-reverse;
grid-template-columns: repeat(5, 50px);
}
</style>
<body>
<p>Ensure that dense-packing with multi-span items follows the grid-lanes dense packing algorithm.</p>
<div class="grid-lanes">
<div style="background: brown; height: 80px;"></div>
<div style="background: brown; height: 60px;"></div>
<div style="background: brown; height: 40px;"></div>
<div style="background: brown; height: 30px;"></div>
<div style="background: brown; height: 20px;"></div>
<div style="background: brown; height: 20px; grid-column: span 5;"></div>
<div style="background: pink; height: 30px; grid-column: span 4;">
Item that should not end up in gap.
</div>
<div style="background: yellow; height: 20px; grid-column: span 4;">
Item that should end up in gap.
</div>
</div>
</body>
</html>