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-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="row-dense-packing-004-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
item-tolerance: 0;
masonry-direction: row;
grid-template-rows: repeat(4, 50px);
grid-auto-flow: dense;
}
</style>
<body>
<p>Ensure that dense-packing in masonry only places items with a specified track into track openings in that same specified track.</p>
<div class="grid-lanes">
<div style="background: brown; width: 20px;"></div>
<div style="background: brown; width: 40px;"></div>
<div style="background: brown; width: 60px; grid-row-start: 4;"></div>
<div style="background: brown; width: 20px; grid-row: span 2;"></div>
<div style="background: brown; width: 20px; grid-row: span 4;"></div>
<div style="background: brown; width: 20px; grid-row: span 3;"></div>
<div style="background: brown; width: 20px; grid-row: span 4;"></div>
<div style="background: yellow; width: 20px; grid-row-start: 4;"></div>
<div style="background: pink; width: 20px;"></div>
</div>
</body>
</html>