Status: FAIL | Duration: 32ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/item-placement/dense-packing/column-dense-packing-multi-span-009.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="column-dense-packing-multi-span-009-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; flow-tolerance: 0; gap: 10px; padding: 10px; grid-template-columns: repeat(4, 60px); grid-auto-flow: dense; grid-lanes-pack: dense; } </style> <body> <p>Ensure that dense-packing correctly accounts for the gaps between items when placing them in track openings. Items to be placed in track openings are yellow.</p> <div class="grid-lanes"> <div style="background: aquamarine; height: 120px;" > 1 </div> <div style="background: blue; height: 40px;" > 2 </div> <div style="background: blueviolet; height: 20px;"> 3 </div> <div style="background: lightsteelblue; height: 60px; grid-column: 4;"> 4 </div> <div style="background: aqua; height: 20px; grid-column: span 4;"> 5 </div> <div style="background: yellow; height: 10px; grid-column: span 3;"> 6 </div> <div style="background: yellow; height: 10px; grid-column: span 3;"> 7 </div> <div style="background: yellow; height: 10px; grid-column: span 3;"> 8 </div> <div style="background: green; height: 10px; grid-column: span 3;"> 9 </div> <div style="background: yellow; height: 10px; grid-column: span 2;"> 10 </div> </div> </body> </html>
/css/css-grid/grid-lanes/item-placement/dense-packing/column-dense-packing-multi-span-009-ref.html
<!DOCTYPE html> <html> <style> .grid { display: grid; gap: 10px; padding: 10px; grid-template-columns: repeat(4, 60px); grid-auto-flow: dense; } .upwards { transform: translateY(-80px); } </style> <body> <p>Ensure that dense-packing correctly accounts for the gaps between items when placing them in track openings. Items to be placed in track openings are yellow.</p> <div class="grid"> <div style="background: aquamarine; height: 120px;" > 1 </div> <div style="background: blue; height: 40px;" > 2 </div> <div style="background: blueviolet; height: 20px;"> 3 </div> <div style="background: lightsteelblue; height: 60px; grid-column: 4;"> 4 </div> <div class="upwards" style="background: yellow; height: 10px; grid-column: 2 / span 2;"> 10 </div> <div class="upwards" style="background: yellow; height: 10px; grid-column: 2 / span 3;"> 6 </div> <div class="upwards" style="background: yellow; height: 10px; grid-column: 2 / span 3;"> 7 </div> <div class="upwards" style="background: yellow; height: 10px; grid-column: 2 / span 3;"> 8 </div> <div class="upwards" style="background: aqua; height: 20px; grid-column: span 4;"> 5 </div> <div class="upwards" style="background: green; height: 10px; grid-column: span 3;"> 9 </div> </div> </body> </html>