Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
<!DOCTYPE html> <html> <title>Auto repeat tracks with fit-content() track size</title> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="row-auto-repeat-fit-content-001-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; flow-tolerance: 0; grid-template-rows: repeat(auto-fill, fit-content(100px)); width: 300px; height: 300px; font: 15px/1 Ahem; } .grid-lanes > div { width: 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-row: span 2; background: brown;"> Number 6 </div> </div> </body> </html>
<!DOCTYPE html> <html> <link rel="stylesheet" href="/fonts/ahem.css"> <style> .grid { display: grid; background: gray; grid-template-rows: repeat(7, fit-content(100px)); width: 300px; height: 300px; font: 15px/1 Ahem; } .grid > div { width: 100px; } </style> <body> <div class="grid"> <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="background: brown;"> Number 6 </div> <!-- In Grid, the last column is 0 because no item is placed in it, so spanning item 6 won't match grid-lanes - which places all items in every track. Add another item since spanning row by 2 above doesn't work in grid --> <div style="background: brown; color: transparent;"> Number 7 </div> </div> </body> </html>