column-reverse-dense-packing-multi-span-005-ref.html (870B)
1 <!DOCTYPE html> 2 <html> 3 <style> 4 .grid { 5 display: grid; 6 grid-auto-flow: dense; 7 grid-template-columns: repeat(5, 50px); 8 } 9 </style> 10 <body> 11 <p>Ensure that dense-packing in grid-lanes properly handles "split" track openings.</p> 12 <div class="grid"> 13 <div style="background: brown; height: 80px; grid-column: 5;"></div> 14 <div style="background: brown; height: 20px; grid-column: 3 / span 2"></div> 15 <div style="background: brown; height: 40px; grid-column: 2;"></div> 16 <div style="background: brown; height: 100px; grid-column: 1;"></div> 17 <div style="background: brown; height: 10px; grid-column: span 5;"></div> 18 <div style="background: pink; height: 10px; grid-column: 2 / span 4; transform: translateY(-30px);"></div> 19 <div style="background: lightgreen; height: 10px; grid-column: 2 / span 2; transform: translate(50px, -100px);"></div> 20 </div> 21 </body> 22 </html>