row-dense-packing-multi-span-004.html (1069B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="row-dense-packing-multi-span-004-ref.html"> 5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> 6 <style> 7 .grid-lanes { 8 display: grid-lanes; 9 flow-tolerance: 0; 10 grid-lanes-direction: row; 11 grid-template-rows: repeat(4, 50px); 12 grid-auto-flow: dense; 13 } 14 </style> 15 <body> 16 <p>Ensure that dense-packing in grid-lanes only places items with specified tracks into track openings in those same specified tracks.</p> 17 <div class="grid-lanes"> 18 <div style="background: brown; width: 20px; grid-row: span 2;"></div> 19 <div style="background: darkgoldenrod; width: 20px; grid-row: span 4;"></div> 20 <div style="background: tan; width: 40px; grid-row: 3 / span 2;"></div> 21 <div style="background: brown; width: 20px; grid-row: span 4;"></div> 22 <div style="background: yellow; width: 20px; grid-row: 1 / span 2;"></div> 23 <div style="background: pink; width: 20px; grid-row: span 2;"></div> 24 </div> 25 </body> 26 </html>