row-reverse-001.html (1559B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="row-reverse-001-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-template-rows: repeat(3, 50px); 11 gap: 10px; 12 grid-lanes-direction: row-reverse; 13 } 14 </style> 15 <body> 16 <p>Test that grid-lanes items with reverse auto placement and explicit placement are correctly positioned within the grid axis.</p> 17 <div class="grid-lanes"> 18 <div style="background: lavender; width: 20px;">1</div> 19 <div style="background: lightskyblue; width: 20px;">2</div> 20 <div style="background: lightgreen; width: 20px;">3</div> 21 <div style="background: lightpink; grid-row: span 2; width: 20px;">4</div> 22 <div style="background: lavender; width: 20px;">5</div> 23 <div style="background: lightskyblue; width: 20px;">6</div> 24 <div style="background: lightgreen; width: 20px;">7</div> 25 <div style="background: lightpink; grid-row: 1 / span 2; width: 20px;">8</div> 26 <div style="background: lavender; width: 20px;">9</div> 27 <div style="background: lightskyblue; width: 20px;">10</div> 28 <div style="background: lavender; width: 30px;">11</div> 29 <div style="background: lightskyblue; width: 40px;">12</div> 30 <div style="background: lightgreen; width: 50px;">13</div> 31 <div style="background: lightgreen; width: 10px;">14</div> 32 <div style="background: lightskyblue; width: 40px;">15</div> 33 </div> 34 </body> 35 </html>