row-align-items-end-align-self-start-001.html (1265B)
1 <!DOCTYPE html> 2 <html> 3 <title>CSS Grid Lanes Test: Alignment for items and self in grid axis</title> 4 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment"> 6 <link rel="match" href="row-align-items-end-align-self-start-001-ref.html"> 7 <style> 8 .grid-lanes { 9 display: grid-lanes; 10 grid-lanes-direction: row; 11 background: gray; 12 flow-tolerance: 0; 13 grid-template-rows: repeat(3, 100px); 14 width: 300px; 15 align-items: end; 16 } 17 18 .fifty-width { 19 width: 50px; 20 background-color: lightblue; 21 } 22 </style> 23 <body> 24 <p>Test that using align-items moves each grid-lanes item to the end of the grid-axis track it is on</p> 25 <p>and that align-self overrides align-items.</p> 26 <div class="grid-lanes"> 27 <div style="width: 50px; height: 50px; background-color: lightblue;"></div> 28 <div style="width: 100px; height: 15px; background-color: lightsalmon; align-self: start;"></div> 29 <div style="width: 25px; height: 25px; background-color: plum;"></div> 30 <div style="background-color: lightgreen; width: 60px; height: 60px;"></div> 31 <div style="background-color: lightpink; height: 80px; width: 200px; grid-row: span 2;"></div> 32 </div> 33 </body> 34 </html>