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/track-sizing/auto-repeat/row-auto-repeat-020.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>Auto-fit repeat tracks with fixed size and auto/explicit spanning item placement</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="match" href="row-auto-repeat-019-ref.html">
<style>
.grid-lanes {
display: grid-lanes;
item-tolerance: 0;
masonry-direction: row;
grid-template-rows: 50px repeat(5, 50px) repeat(auto-fit, 50px);
width: 200px;
height: 500px;
gap: 10px;
}
.grid-lanes > div {
height: 100%;
width: 50px;
background-color: orange;
}
</style>
<div class="grid-lanes">
<div style="grid-row: span 4;">1</div>
<div style="grid-row: 4 / span 2;">2</div>
<div style="grid-row: 9 / span 2;">3</div>
<div style="grid-row: 7;">4</div>
<div style="grid-row: span 2;">5</div>
<div>6</div>
</div>
</html>