row-reverse-dense-packing-multi-span-004.html (1269B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="row-reverse-dense-packing-multi-span-004-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: row-reverse; 12 grid-template-rows: repeat(4, 50px); 13 width: 170px; 14 } 15 </style> 16 <body> 17 <p>Ensure that dense-packing correctly iterates through all possible track openings to find an opening span. Item that should be placed into opening is yellow.</p> 18 <div class="grid-lanes"> 19 <div style="background: aquamarine; width: 60px;"> 20 1 21 </div> 22 <div style="background: blue; width: 40px;"> 23 2 24 </div> 25 <div style="background: blueviolet; width: 20px;"> 26 3 27 </div> 28 <div style="background: lightblue; width: 10px; grid-row: 3 / span 2;"> 29 4 30 </div> 31 <div style="background: lightskyblue; grid-row: 4; width: 30px;"> 32 5 33 </div> 34 <div style="background: lightsteelblue; width: 60px; grid-row: 1;"> 35 6 36 </div> 37 <div style="background: aqua; width: 20px; grid-row: span 4;"> 38 7 39 </div> 40 <div style="background: yellow; width: 10px; grid-row: span 3;"> 41 8 42 </div> 43 </div> 44 </body> 45 </html>