column-reverse-dense-packing-001-ref.html (921B)
1 <!DOCTYPE html> 2 <html> 3 <style> 4 .grid { 5 display: grid; 6 grid-template-columns: repeat(4, 50px) 15px; 7 gap: 10px; 8 grid-auto-flow: dense; 9 } 10 </style> 11 <body> 12 <p>Test that grid-lanes items with reverse auto placement and explicit placement are correctly positioned within the grid axis during dense-packing.</p> 13 <div class="grid"> 14 <div style="background: lavender; height: 60px; grid-column: 3;"> 15 1 16 </div> 17 <div style="background: lightgreen; height: 60px; grid-column: 1;"> 18 2 19 </div> 20 <div style="background: lightpink; grid-column: 2 / span 4; height: 10px;"> 21 3 22 </div> 23 <div style="grid-column: 4;"> 24 <div style="background: yellow; height: 20px;"> 25 4 26 </div> 27 <div style="background: yellow; height: 10px; margin-top: 10px; grid-column: 4;"> 28 5 29 </div> 30 </div> 31 <div style="background: yellow; height: 10px; grid-column: 2;"> 32 6 33 </div> 34 </div> 35 </body> 36 </html>