Status: FAIL | Duration: 27ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/tentative/item-placement/column-reverse-dense-packing-multi-span-006.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="column-reverse-dense-packing-multi-span-006-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; flow-tolerance: 0; grid-template-columns: repeat(4, 50px); grid-auto-flow: dense; grid-lanes-pack: dense; grid-lanes-direction: column track-reverse; } </style> <body> <p>Ensure that open tracks are used when dense-packing a multi-span item.</p> <div class="grid-lanes"> <div style="background: lightskyblue; height: 80px;" > 1 </div> <div style="background: lightblue; height: 40px; grid-column: 1;" > 2 </div> <div style="background: darkblue; height: 20px; grid-column: 1 / span 2;"> 3 </div> <div style="background: yellow; height: 15px; grid-column: span 2;" > 4 </div> <div style="background: yellow; height: 15px; grid-column: span 2;" > 5 </div> <div style="background: skyblue; height: 25px; grid-column: span 2;" > 6 </div> <div style="background: skyblue; height: 40px;" > 7 </div> </div> </body> </html>
<!DOCTYPE html> <html> <style> .grid { display: grid; grid-template-columns: repeat(4, 50px); grid-auto-flow: dense; } </style> <body> <p>Ensure that open tracks are used when dense-packing a multi-span item.</p> <div class="grid"> <div style="background: lightskyblue; height: 80px; grid-column: 4;" > 1 </div> <div style="background: lightblue; height: 40px; grid-column: 1;" > 2 </div> <div style="background: darkblue; height: 20px; grid-column: 1 / span 2; transform: translateY(-40px);"> 3 </div> <div style="grid-column: span 2;"> <div style="background: yellow; height: 15px;" > 4 </div> <div style="background: yellow; height: 15px;" > 5 </div> </div> <div style="background: skyblue; height: 25px; grid-column: 2 / span 2; transform: translateY(-40px);" > 6 </div> <div style="background: skyblue; height: 40px; grid-column: 1; transform: translateY(-40px);" > 7 </div> </div> </body> </html>