column-dense-packing-001.html (1712B)
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-001-ref.html"> 5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> 6 <style> 7 html,body { 8 font:15px/1 monospace; 9 } 10 .grid-lanes { 11 display: grid-lanes; 12 flow-tolerance: 0; 13 grid-template-columns: repeat(3, 50px); 14 grid-auto-flow: dense; 15 } 16 </style> 17 <body> 18 <p>Ensure that dense-packing places items correctly in grid-lanes.</p> 19 <div class="grid-lanes"> 20 <div style="background: lightskyblue; height: 20px;" > 21 1 22 </div> 23 <div style="background: lightcoral; height: 60px;" > 24 2 25 </div> 26 <div style="background: lightgreen; height: 60px;"> 27 3 28 </div> 29 <div style="background: brown; height: 15px; grid-column: span 2;"> 30 4 31 </div> 32 <div style="background: red; height: 40px;"> 33 5 34 </div> 35 <div style="background: pink; height: 45px;"> 36 6 37 </div> 38 <div style="background: yellow; height: 40px;"> 39 7 40 </div> 41 <div style="background: brown; height: 60px; grid-column: span 2;"> 42 8 43 </div> 44 <div style="background: blueviolet; height: 12px; grid-column: 2; margin-top: 3px;"> 45 9 46 </div> 47 <div style="background: orange; height: 15px; grid-column: 2;"> 48 10 49 </div> 50 <div style="background: pink; height: 20px; grid-column: span 3;"> 51 11 52 </div> 53 <div style="background: brown; height: 60px; grid-column: 2 / span 2;"> 54 12 55 </div> 56 <div style="background: pink; height: 20px; grid-column: span 3;"> 57 13 58 </div> 59 <div style="background: green; height: 60px;"> 60 14 61 </div> 62 </div> 63 </body> 64 </html>