column-dense-packing-008.html (1201B)
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-008-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 padding: 10px; 12 grid-auto-flow: dense; 13 } 14 </style> 15 <body> 16 <p>Ensure that the auto-placement cursor does not move after dense-packing an item.</p> 17 <div class="grid-lanes"> 18 <div style="background: lightskyblue; height: 40px; grid-column: 1;" > 19 1 20 </div> 21 <div style="background: lightcoral; height: 15px; grid-column: 1 / span 3;" > 22 2 23 </div> 24 <div style="background: lightgreen; height: 15px; grid-column: 1 / span 2;"> 25 3 26 </div> 27 <div style="background: yellow; height: 55px; grid-column: 4;"> 28 4 29 </div> 30 <div style="background:orchid; height: 10px; grid-column: 3;"> 31 5 32 </div> 33 <!--Auto-placement cursor should be at the last line after placing item 4, and wrap around when we place item 6.--> 34 <div style="background:orchid; height: 60px;"> 35 6 36 </div> 37 </div> 38 </body> 39 </html>