Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/tentative/item-placement/row-reverse-dense-packing-001.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="row-reverse-dense-packing-001-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(4, 50px) 15px; gap: 10px; grid-lanes-direction: row track-reverse; grid-auto-flow: dense; grid-lanes-pack: dense; } </style> <body> <p>Test that grid-lanes items with reverse auto placement and explicit placement are correctly positioned within the grid axis during dense-packing.</p> <div class="grid-lanes"> <div style="background: lavender; width: 60px; grid-row: 3;"> 1 </div> <div style="background: lightgreen; width: 60px; grid-row: 1;"> 2 </div> <div style="background: lightpink; grid-row: span 4; width: 10px;"> 3 </div> <!--Item 4 is densely packed into start-most gap of the same layout size as auto-placement without dense-packing.--> <div style="background: yellow; width: 20px;"> 4 </div> <!--Item 5 is densely-packed into a specified track.--> <div style="background: yellow; width: 10px; grid-row: 4;"> 5 </div> <!--Item 6 is densely-packed into highest, but not earliest, found gap.--> <div style="background: yellow; width: 10px;"> 6 </div> </div> </body> </html>
/css/css-grid/grid-lanes/tentative/item-placement/row-reverse-dense-packing-001-ref.html
<!DOCTYPE html> <html> <style> .grid { display: grid; grid-template-rows: repeat(4, 50px) 15px; grid-template-columns: repeat(2, min-content); gap: 10px; grid-auto-flow: dense; } </style> <body> <p>Test that grid-lanes items with reverse auto placement and explicit placement are correctly positioned within the grid axis during dense-packing.</p> <div class="grid"> <div style="background: lavender; width: 60px; grid-row: 3;"> 1 </div> <div style="background: lightgreen; width: 60px; grid-row: 1;"> 2 </div> <div style="background: lightpink; grid-row: 2 / span 4; width: 10px;"> 3 </div> <div style="grid-row: 4;"> <div style="display: flex; flex-direction: row; height: 100%;"> <div style="background: yellow; width: 20px;"> 4 </div> <div style="background: yellow; width: 10px; margin-left: 10px; grid-row: 4;"> 5 </div> </div> </div> <div style="background: yellow; width: 10px; grid-row: 2;"> 6 </div> </div> </body> </html>