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/row-reverse-dense-packing-multi-span-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="row-reverse-dense-packing-multi-span-002-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: row-reverse;
grid-template-rows: 10px 10px 20px 15px 5px;
}
</style>
<body>
<p>Ensure that dense-packing with multi-span items are placed into tracks with the same used size and the same number of tracks.</p>
<div class="grid-lanes">
<div style="background: lightskyblue; width: 20px; grid-row: 3">
1
</div>
<div style="background: lightblue; width: 20px; grid-row: span 5">
2
</div>
<div style="background: darkblue; width: 20px; grid-row: span 3;">
3
</div>
<div style="background: yellow; width: 20px; grid-row: span 2;">
4
</div>
</div>
</body>
</html>