column-dense-packing-multi-span-010.html (1145B)
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-multi-span-010-ref.html"> 5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> 6 <style> 7 .grid-lanes { 8 display: grid-lanes; 9 item-tolerance: 0; 10 grid-template-columns: repeat(4, 50px); 11 grid-auto-flow: dense; 12 } 13 </style> 14 <body> 15 <p>Ensure that open tracks are used when dense-packing a multi-span item.</p> 16 <div class="grid-lanes"> 17 <div style="background: lightskyblue; height: 80px;" > 18 1 19 </div> 20 <div style="background: lightblue; height: 40px; grid-column: 4;" > 21 2 22 </div> 23 <div style="background: darkblue; height: 20px; grid-column: 3 / span 2;"> 24 3 25 </div> 26 <div style="background: yellow; height: 15px; grid-column: span 2;" > 27 4 28 </div> 29 <div style="background: yellow; height: 15px; grid-column: span 2;" > 30 5 31 </div> 32 <div style="background: skyblue; height: 25px; grid-column: span 2;" > 33 6 34 </div> 35 <div style="background: skyblue; height: 40px;" > 36 7 37 </div> 38 </div> 39 </body> 40 </html>