column-dense-packing-multi-span-008-ref.html (828B)
1 <!DOCTYPE html> 2 <html> 3 <style> 4 .grid { 5 display: grid; 6 grid-template-columns: repeat(4, 50px); 7 } 8 </style> 9 <body> 10 <p>Ensure that dense-packing in grid-lanes only places items with specified tracks into track openings in those same specified tracks.</p> 11 <div class="grid"> 12 <div style="background: brown; height: 20px; grid-column: span 2; grid-row: 1;"></div> 13 <div style="background: darkgoldenrod; height: 20px; grid-column: span 4;"></div> 14 <div style="background: tan; height: 40px; grid-column: 3 / span 2;"></div> 15 <div style="background: brown; height: 20px; grid-column: span 4;"></div> 16 <div style="background: yellow; height: 20px; grid-column: 1 / span 2; grid-row: 3;"></div> 17 <div style="background: pink; height: 20px; grid-column: span 2; grid-row: 1;"></div> 18 </div> 19 </body> 20 </html>