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-content-002.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: row fill-reverse with align-content: baseline</title> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <link rel="match" href="row-fill-reverse-align-content-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, 70px); gap: 4px; width: 260px; height: 170px; border: 1px solid; } item { display: block; width: min-content; height: min-content; color: white; background: #555; } </style> </head> <body> <!-- Container alignment --> <p>align-content: baseline</p> <div class="grid-lanes" style="align-content: baseline;"> <item>item 1</item> <item>item 2</item> <item>item 3</item> </div> <!-- Self alignment --> <p>align-self</p> <div class="grid-lanes"> <item style="align-self: start;">start</item> <item style="align-self: end;">end</item> <item style="align-self: center;">center</item> <item style="align-self: baseline;">baseline</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/row-fill-reverse-align-content-002-ref.html
<!DOCTYPE html> <html> <head> <style> html, body { font: 16px/1 monospace; background: white; } .container { display: flex; flex-direction: column; gap: 4px; width: 260px; height: 170px; border: 1px solid; } .row { display: flex; flex-direction: row-reverse; height: 70px; flex-shrink: 0; gap: 4px; align-items: start; } item { display: block; width: min-content; height: min-content; color: white; background: #555; } </style> </head> <body> <!-- Container alignment (baseline falls back to start) --> <p>align-content: baseline</p> <div class="container" style="justify-content: baseline;"> <div class="row"> <item>item 1</item> <item>item 3</item> </div> <div class="row"> <item>item 2</item> </div> </div> <!-- Self alignment --> <p>align-self</p> <div class="container"> <div class="row"> <item>start</item> <item>baseline</item> </div> <div class="row"> <item style="align-self: end;">end</item> <item style="align-self: center;">center</item> </div> </div> </body> </html>