column-dense-packing-006.html (1215B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="column-dense-packing-006-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-template-columns: repeat(4, 50px); 11 grid-auto-flow: dense; 12 } 13 </style> 14 <body> 15 <p>Ensure that dense-packing in grid-lanes only places items with a specified track into track openings in that same specified track.</p> 16 <div class="grid-lanes"> 17 <div style="background: brown; height: 20px;"></div> 18 <div style="background: brown; height: 40px;"></div> 19 <div style="background: brown; height: 60px; grid-column-start: 4;"></div> 20 <div style="background: brown; height: 20px; grid-column: span 2;"></div> 21 <div style="background: brown; height: 20px; grid-column: span 4;"></div> 22 <div style="background: brown; height: 20px; grid-column: span 3;"></div> 23 <div style="background: brown; height: 20px; grid-column: span 4;"></div> 24 <div style="background: yellow; height: 20px; grid-column-start: 4;"></div> 25 <div style="background: pink; height: 20px;"></div> 26 </div> 27 </body> 28 </html>