Status: FAIL | Duration: 15ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/row-fill-reverse-align-items-002.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: row fill-reverse with aligning items to the last baseline</title> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <link rel="match" href="row-fill-reverse-align-items-002-ref.html"> <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment"> <style> html, body { font: 16px/1 monospace; background: white; } .grid-lanes { display: grid-lanes; grid-lanes-direction: row fill-reverse; grid-template-rows: repeat(2, 80px); border: 1px solid blue; gap: 4px; height: min-content; width: 180px; } item { display: block; width: min-content; color: white; background: #555; } </style> </head> <body> <p>align-items: last baseline</p> <div class="grid-lanes" style="align-items: last baseline;"> <item>item 1 with some extra text</item> <item>item 2</item> <item>item 3</item> <item>item 4</item> <item>item 5</item> <item>item 6</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/row-fill-reverse-align-items-002-ref.html
<!DOCTYPE html> <html> <head> <style> html, body { font: 16px/1 monospace; background: white; } .container { display: grid; grid-template-rows: repeat(2, 80px); gap: 4px; height: min-content; width: 180px; border: 1px solid blue; } .row { display: flex; flex-direction: row-reverse; gap: 4px; } item { display: block; width: min-content; color: white; background: #555; } </style> </head> <body> <p>align-items: last baseline</p> <div class="container"> <div class="row" style="align-items: last baseline;"> <item>item 1 with some extra text</item> <item>item 3</item> <item>item 5</item> </div> <div class="row" style="align-items: last baseline;"> <item>item 2</item> <item>item 4</item> <item>item 6</item> </div> </div> </body> </html>