Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/item-placement/dense-packing/row-dense-packing-multi-span-003.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="row-dense-packing-multi-span-003-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; flow-tolerance: 0; grid-template-rows: repeat(3, 50px); padding: 10px; grid-auto-flow: dense; grid-lanes-pack: dense; } </style> <body> <p>Ensure that dense-packing places items that span more than 1 track correctly into gaps.</p> <div class="grid-lanes"> <div style="background: lightskyblue; width: 20px;" > 1 </div> <div style="background: lightcoral; width: 20px;" > 2 </div> <div style="background: lightgreen; width: 40px;"> 3 </div> <div style="background: brown; width: 10px; grid-row: span 3;"> 4 </div> <div style="background:orchid; width: 10px; grid-row: span 2;"> 5 </div> </div> </body> </html>
/css/css-grid/grid-lanes/item-placement/dense-packing/row-dense-packing-multi-span-003-ref.html
<!DOCTYPE html> <html> <style> .grid { display: grid; grid-template-rows: repeat(3, 50px); padding: 10px; grid-auto-flow: dense; } .flex { display: flex; flex-direction: row; } </style> <body> <p>Ensure that dense-packing places items that span more than 1 track correctly into gaps.</p> <div class="grid"> <div class="flex"> <div style="background: lightskyblue; width: 20px;" > 1 </div> <div style="background:orchid; width: 10px; height: 100px;"> 5 </div> </div> <div style="background: lightcoral; width: 20px;" > 2 </div> <div class="flex"> <div style="background: lightgreen; width: 40px;"> 3 </div> <div style="background: brown; width: 10px; height: 150px; transform: translateY(-100px);"> 4 </div> </div> </div> </body> </html>