Status: FAIL | Duration: 44ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/column-align-self-002.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: align-self start and end on items adjacent to gaps in column direction</title> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment"> <link rel="match" href="column-align-self-002-ref.html"> <style> html, body { color: black; background-color: white; font: 16px/1 monospace; padding: 0; margin: 0; } .grid-lanes { display: grid-lanes; grid-template-columns: repeat(3, 80px); gap: 10px; padding: 2px; margin: 5px; } item { display: block; color: white; } </style> </head> <body> <div class="grid-lanes"> <item style="height: 40px; background: #f4a0a0; align-self: start;">1</item> <item style="height: 80px; background: #f4a0a0;">2</item> <item style="height: 200px; background: #2ca02c;">3</item> <item style="height: 50px; background: #f4a0a0; grid-column: span 2; align-self: start;">4</item> <item style="height: 50px; background: #2ca02c; grid-column: span 3;">5</item> </div> <div class="grid-lanes"> <item style="height: 40px; background: #f4a0a0; align-self: end;">1</item> <item style="height: 80px; background: #f4a0a0;">2</item> <item style="height: 200px; background: #2ca02c;">3</item> <item style="height: 50px; background: #f4a0a0; grid-column: span 2; align-self: end;">4</item> <item style="height: 50px; background: #2ca02c; grid-column: span 3;">5</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/column-align-self-002-ref.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> html, body { color: black; background-color: white; font: 16px/1 monospace; padding: 0; margin: 0; } .grid { display: grid; grid-template-columns: repeat(3, 80px); grid-template-rows: 80px 50px 50px 50px; gap: 10px; padding: 2px; margin: 5px; align-items: start; } .track { display: flex; flex-direction: column; gap: 10px; } item { display: block; color: white; } </style> </head> <body> <div class="grid"> <div class="track" style="grid-column: 1; grid-row: 1; justify-content: start; align-self: stretch;"> <item style="height: 40px; background: #f4a0a0;">1</item> </div> <div class="track" style="grid-column: 2; grid-row: 1;"> <item style="height: 80px; background: #f4a0a0;">2</item> </div> <item style="height: 200px; background: #2ca02c; grid-column: 3; grid-row: 1 / span 3;">3</item> <div style="display: flex; flex-direction: column; justify-content: start; align-self: stretch; grid-column: 1 / span 2; grid-row: 2 / span 2;"> <item style="height: 50px; background: #f4a0a0;">4</item> </div> <item style="height: 50px; background: #2ca02c; grid-column: 1 / span 3; grid-row: 4;">5</item> </div> <div class="grid"> <div class="track" style="grid-column: 1; grid-row: 1; justify-content: end; align-self: stretch;"> <item style="height: 40px; background: #f4a0a0;">1</item> </div> <div class="track" style="grid-column: 2; grid-row: 1;"> <item style="height: 80px; background: #f4a0a0;">2</item> </div> <item style="height: 200px; background: #2ca02c; grid-column: 3; grid-row: 1 / span 3;">3</item> <div style="display: flex; flex-direction: column; justify-content: end; align-self: stretch; grid-column: 1 / span 2; grid-row: 2 / span 2;"> <item style="height: 50px; background: #f4a0a0;">4</item> </div> <item style="height: 50px; background: #2ca02c; grid-column: 1 / span 3; grid-row: 4;">5</item> </div> </body> </html>