Status: FAIL | Duration: 21ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/row-justify-items-005.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: safe alignment should have the same behavior as regular alignment for justify-items start and end 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="match" href="row-justify-items-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(3, 80px); width: 205px; gap: 5px; padding: 2px; margin: 5px; } item { display: block; color: white; } </style> </head> <body> <div class="grid-lanes" style="justify-items: safe start;"> <item style="width: 70px; background: #f4a0a0;">1</item> <item style="width: 40px; background: #2ca02c;">2</item> <item style="width: 120px; background: #ff7f0e;">3</item> <item style="width: 60px; background: #ffbb78;">4</item> <item style="width: 50px; background: #aad4f5;">5</item> <item style="width: 80px; background: #c5b0d5;">6</item> <item style="width: 40px; background: #d62728;">7</item> <item style="width: 50px; background: #98df8a;">8</item> <item style="width: 35px; background: #9edae5;">9</item> </div> <div class="grid-lanes" style="justify-items: safe end;"> <item style="width: 70px; background: #f4a0a0;">1</item> <item style="width: 40px; background: #2ca02c;">2</item> <item style="width: 120px; background: #ff7f0e;">3</item> <item style="width: 60px; background: #ffbb78;">4</item> <item style="width: 50px; background: #aad4f5;">5</item> <item style="width: 80px; background: #c5b0d5;">6</item> <item style="width: 40px; background: #d62728;">7</item> <item style="width: 50px; background: #98df8a;">8</item> <item style="width: 35px; background: #9edae5;">9</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/row-justify-items-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(3, 80px); grid-template-columns: 240px; gap: 5px; padding: 2px; margin: 5px; justify-items: stretch; } .track { display: flex; flex-direction: row; gap: 5px; } item { display: block; color: white; } </style> </head> <body> <div class="grid"> <div class="track"> <item style="width: 70px; background: #f4a0a0;">1</item> <item style="width: 50px; background: #aad4f5;">5</item> <item style="width: 50px; background: #98df8a;">8</item> </div> <div class="track"> <item style="width: 40px; background: #2ca02c;">2</item> <item style="width: 60px; background: #ffbb78;">4</item> <item style="width: 80px; background: #c5b0d5;">6</item> </div> <div class="track"> <item style="width: 120px; background: #ff7f0e;">3</item> <item style="width: 40px; background: #d62728;">7</item> <item style="width: 35px; background: #9edae5;">9</item> </div> </div> <div class="grid" style="grid-template-columns: 205px;"> <div class="track"> <item style="width: 70px; background: #f4a0a0;">1</item> <item style="width: 50px; background: #aad4f5;">5</item> <div style="flex-grow: 1;"></div> <item style="width: 50px; background: #98df8a;">8</item> </div> <div class="track"> <item style="width: 40px; background: #2ca02c;">2</item> <item style="width: 60px; background: #ffbb78;">4</item> <div style="flex-grow: 1;"></div> <item style="width: 80px; background: #c5b0d5;">6</item> </div> <div class="track"> <item style="width: 120px; background: #ff7f0e;">3</item> <item style="width: 40px; background: #d62728;">7</item> <item style="width: 35px; background: #9edae5;">9</item> </div> </div> </body> </html>