Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/row-fill-reverse-justify-content-indefinite-size-002.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: ensure flex-start and flex-end behave the same as start and end for content alignment</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="row-fill-reverse-justify-content-indefinite-size-001-ref.html"> <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; height: 170px; border: 1px solid; } item { display: block; width: 56px; height: 26px; color: white; background: #2ca02c; } </style> </head> <body> <div class="grid-lanes" style="justify-content: flex-start;"> <item>1</item> <item>2</item> <item>3</item> <item>4</item> </div> <div class="grid-lanes" style="justify-content: center;"> <item>1</item> <item>2</item> <item>3</item> <item>4</item> </div> <div class="grid-lanes" style="justify-content: flex-end;"> <item>1</item> <item>2</item> <item>3</item> <item>4</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/row-fill-reverse-justify-content-indefinite-size-001-ref.html
<!DOCTYPE html> <html> <head> <style> html, body { font: 16px/1 monospace; background: white; } .container { display: flex; flex-direction: column; gap: 4px; height: 170px; border: 1px solid; } .row { display: flex; flex-direction: row; height: 70px; flex-shrink: 0; gap: 4px; align-items: start; } item { display: block; width: 56px; height: 26px; color: white; background: #2ca02c; } </style> </head> <body> <div class="container"> <div class="row" style="justify-content: start;"> <item>3</item> <item>1</item> </div> <div class="row" style="justify-content: start;"> <item>4</item> <item>2</item> </div> </div> <div class="container"> <div class="row" style="justify-content: center;"> <item>3</item> <item>1</item> </div> <div class="row" style="justify-content: center;"> <item>4</item> <item>2</item> </div> </div> <div class="container"> <div class="row" style="justify-content: end;"> <item>3</item> <item>1</item> </div> <div class="row" style="justify-content: end;"> <item>4</item> <item>2</item> </div> </div> </body> </html>