Status: FAIL | Duration: 20ms | 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-001.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-001-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; flow-tolerance: 0; grid-auto-flow: dense; grid-lanes-pack: dense; grid-lanes-direction: column track-reverse; grid-template-columns: repeat(4, 50px); } </style> <body> <p>Ensure that dense-packing places multi-spanning item into highest eligible track opening. The yellow item should be placed in track opening.</p> <div class="grid-lanes"> <div style="background: lightskyblue; height: 70px;" > 1 </div> <div style="background: lightblue; height: 20px; grid-column: 1;" > 2 </div> <div style="background: darkblue; height: 20px; grid-column: 1 / span 2;"> 3 </div> <div style="background: lightsteelblue; height: 20px; grid-column: span 4;" > 4 </div> <div style="background: yellow; height: 10px; grid-column: span 2;" > 5 </div> </div> </body> </html>
<!DOCTYPE html> <html> <style> .grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 50px); } </style> <body> <p>Ensure that dense-packing places multi-spanning item into highest eligible track opening. The yellow item should be placed in track opening.</p> <div class="grid"> <div style="background: lightskyblue; height: 70px; grid-column: 4;" > 1 </div> <div style="background: lightblue; height: 20px; grid-column: 1;" > 2 </div> <div style="background: darkblue; height: 20px; grid-column: 1 / span 2; transform: translateY(-50px);"> 3 </div> <div style="background: lightsteelblue; height: 20px; grid-column: span 4; transform: translateY(-20px);" > 4 </div> <div style="background: yellow; height: 10px; grid-column: span 2;" > 5 </div> </div> </body> </html>