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/dense-packing/row-dense-packing-multi-span-005.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="row-dense-packing-multi-span-005-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
item-tolerance: 0;
gap: 10px;
padding: 10px;
masonry-direction: row;
grid-template-rows: repeat(4, 60px);
grid-auto-flow: dense;
}
</style>
<body>
<p>Ensure that dense-packing correctly accounts for the gaps between items when placing them in track openings. Items to be placed in track openings are yellow.</p>
<div class="grid-lanes">
<div style="background: aquamarine; width: 120px;" >
1
</div>
<div style="background: blue; width: 40px;" >
2
</div>
<div style="background: blueviolet; width: 20px;">
3
</div>
<div style="background: lightsteelblue; width: 60px; grid-row: 4;">
4
</div>
<div style="background: aqua; width: 20px; grid-row: span 4;">
5
</div>
<div style="background: yellow; width: 10px; grid-row: span 3;">
6
</div>
<div style="background: yellow; width: 10px; grid-row: span 3;">
7
</div>
<div style="background: yellow; width: 10px; grid-row: span 3;">
8
</div>
<div style="background: green; width: 10px; grid-row: span 3;">
9
</div>
<div style="background: yellow; width: 10px; grid-row: span 2;">
10
</div>
</div>
</body>
</html>