Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
<!DOCTYPE html> <html> <title>Auto-fit repeat tracks with auto size and explicit item placement</title> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="row-auto-repeat-auto-014-ref.html"> <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com"> <style> .grid-lanes { display: grid-lanes; background: gray; flow-tolerance: 0; grid-template-rows: repeat(auto-fit, auto); width: 200px; height: 500px; } .grid-lanes > div { height: 100px; width: 100px; } </style> <body> <div class="grid-lanes"> <div style="background: lightskyblue; grid-row: 1;"> Number 1 </div> <div style="background: lightcoral; grid-row: 3;"> Number 2 </div> <div style="background: lightgreen; grid-row: 5;"> Number 3 </div> <div style="background: lightpink; grid-row: 1;"> Number 4 </div> <div style="background: orange; grid-row: 3;"> Number 5 </div> </div> </body> </html>
<!DOCTYPE html> <html> <style> .grid { display: grid; grid-template-rows: auto auto auto; grid-template-columns: 100px 100px; background: gray; width: 200px; height: 500px; } .grid > div { height: 100px; width: 100px; } </style> <body> <div class="grid"> <div style="background: lightskyblue;"> Number 1 </div> <div style="background: lightcoral; grid-row: 2;"> Number 2 </div> <div style="background: lightgreen; grid-row: 3;"> Number 3 </div> <div style="background: lightpink; grid-row: 1; grid-column: 2;"> Number 4 </div> <div style="background: orange;"> Number 5 </div> </div> </body> </html>