column-reverse-dense-packing-multi-span-002.html (973B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="column-reverse-dense-packing-multi-span-002-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-auto-flow: dense; 11 grid-lanes-direction: column-reverse; 12 grid-template-columns: 10px 10px 20px 15px 5px; 13 } 14 </style> 15 <body> 16 <p>Ensure that dense-packing with multi-span items are placed into tracks with the same used size and the same number of tracks.</p> 17 <div class="grid-lanes"> 18 <div style="background: lightskyblue; height: 20px; grid-column: 3" > 19 1 20 </div> 21 <div style="background: lightblue; height: 20px; grid-column: span 5" > 22 2 23 </div> 24 <div style="background: darkblue; height: 20px; grid-column: span 3;"> 25 3 26 </div> 27 <div style="background: yellow; height: 20px; grid-column: span 2;" > 28 4 29 </div> 30 </div> 31 </body> 32 </html>