Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<style>
.grid {
display: grid;
grid-template-rows: repeat(6, 50px);
}
</style>
<body>
<p>Ensure that row dense-packing honors flow-tolerance for multi-span items. The yellow item should use the preferred opening spanning tracks 1-2 (running position 5px), not the strictly-highest opening spanning tracks 4-5 (running position 0).</p>
<div class="grid">
<div style="background: lightskyblue; width: 5px; grid-row: 1 / span 2; grid-column: 1;">1</div>
<div style="background: lightblue; width: 60px; grid-row: 3; grid-column: 1;">2</div>
<div style="background: darkblue; width: 60px; grid-row: 6; grid-column: 1;">3</div>
<div style="background: lightsteelblue; width: 20px; grid-row: 1 / span 6; grid-column: 1; transform: translateX(60px);">4</div>
<div style="background: yellow; width: 20px; grid-row: 1 / span 2; grid-column: 1; transform: translateX(5px);">5</div>
</div>
</body>
</html>