Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/row-dense-packing-justify-self-002.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: justify-self center and stretch on dense-packed item in row 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="help" href="https://drafts.csswg.org/css-grid-3/#grid-lanes-dense-packing"> <link rel="match" href="row-dense-packing-justify-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-lanes-direction: row; grid-template-rows: repeat(2, 60px); grid-lanes-pack: dense; padding: 2px; margin: 5px; } item { display: block; color: white; } </style> </head> <body> <div class="grid-lanes"> <item style="width: 80px; background: salmon;">1</item> <item style="width: 30px; background: salmon; grid-row: span 2;">2</item> <item style="background: green; justify-self: stretch;">3</item> </div> <div class="grid-lanes"> <item style="width: 80px; background: salmon;">1</item> <item style="width: 30px; background: salmon; grid-row: span 2;">2</item> <item style="width: 40px; background: green; justify-self: center;">3</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/row-dense-packing-justify-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-rows: repeat(2, 60px); grid-template-columns: 80px 30px; padding: 2px; margin: 5px; justify-items: start; } item { display: block; color: white; } </style> </head> <body> <div class="grid"> <item style="width: 80px; background: salmon; grid-row: 1; grid-column: 1;">1</item> <item style="width: 30px; background: salmon; grid-row: 1 / span 2; grid-column: 2;">2</item> <item style="background: green; grid-row: 2; grid-column: 1; justify-self: stretch;">3</item> </div> <div class="grid"> <item style="width: 80px; background: salmon; grid-row: 1; grid-column: 1;">1</item> <item style="width: 30px; background: salmon; grid-row: 1 / span 2; grid-column: 2;">2</item> <item style="width: 40px; background: green; grid-row: 2; grid-column: 1; justify-self: center;">3</item> </div> </body> </html>