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/intrinsic-auto-repeat/column-auto-repeat-mixed-intrinsic-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>Auto repeat tracks with max/min-content track sizes</title>
<link rel="match" href="column-auto-repeat-mixed-intrinsic-002-ref.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.grid-lanes {
display: grid-lanes;
background: gray;
item-tolerance: 0;
grid-template-columns: repeat(auto-fill, max-content min-content);
width: 675px;
height: 300px;
font: 15px/1 Ahem;
}
.grid-lanes > div {
height: 100px;
}
</style>
<body>
<div class="grid-lanes">
<div style="background: lightskyblue;">
Number 1
</div>
<div style="background: lightcoral;">
Number 2
</div>
<div style="background: lightgreen;">
Number 3
</div>
<div style="background: lightpink;">
Number 4
</div>
<div style="background: orange;">
Number 5
</div>
<div style="grid-column: span 2; background: brown;">
Number 6
</div>
<div style="background: lightskyblue;">
Number 7
</div>
<div style="background: lightcoral;">
Number 8
</div>
<div style="background: lightgreen;">
Number 9
</div>
<div style="background: lightpink;">
Number 10
</div>
<div style="background: orange;">
Number 11
</div>
<div style="grid-column: span 2; background: brown;">
Number 12
</div>
</div>
</body>
</html>