Status: FAIL | Duration: 18ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/row-track-reverse-dense-packing-justify-items-multi-span-001.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: track-reverse with dense-packed multi-spanning item and justify-items 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-track-reverse-dense-packing-justify-items-multi-span-001-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 track-reverse; grid-template-rows: repeat(4, 50px); grid-lanes-pack: dense; padding: 2px; margin: 5px 5px 30px 5px; } item { display: block; color: white; } </style> </head> <body> <div class="grid-lanes" style="justify-items: start;"> <item style="width: 70px; background: salmon;">1</item> <item style="width: 20px; background: salmon; grid-row: 1;">2</item> <item style="width: 20px; background: salmon; grid-row: 1 / span 2;">3</item> <item style="width: 20px; background: salmon; grid-row: span 4;">4</item> <item style="width: 10px; background: green; grid-row: span 2;">5</item> </div> <div class="grid-lanes" style="justify-items: end;"> <item style="width: 70px; background: salmon;">1</item> <item style="width: 20px; background: salmon; grid-row: 1;">2</item> <item style="width: 20px; background: salmon; grid-row: 1 / span 2;">3</item> <item style="width: 20px; background: salmon; grid-row: span 4;">4</item> <item style="width: 10px; background: green; grid-row: span 2;">5</item> </div> <div class="grid-lanes" style="justify-items: stretch;"> <item style="width: 70px; background: salmon;">1</item> <item style="width: 20px; background: salmon; grid-row: 1;">2</item> <item style="background: salmon; grid-row: 1 / span 2;">3</item> <item style="width: 20px; background: salmon; grid-row: span 4;">4</item> <item style="background: green; grid-row: span 2;">5</item> </div> <div class="grid-lanes" style="justify-items: center;"> <item style="width: 70px; background: salmon;">1</item> <item style="width: 20px; background: salmon; grid-row: 1;">2</item> <item style="width: 20px; background: salmon; grid-row: 1 / span 2;">3</item> <item style="width: 20px; background: salmon; grid-row: span 4;">4</item> <item style="width: 10px; background: green; grid-row: span 2;">5</item> </div> </body> </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(4, 50px); grid-template-columns: 70px 20px; padding: 2px; margin: 5px 5px 30px 5px; } .grid-fill { display: grid; grid-template-rows: repeat(4, 50px); grid-template-columns: 70px 1fr; padding: 2px; margin: 5px 5px 30px 5px; } item { display: block; color: white; } </style> </head> <body> <div class="grid"> <item style="grid-row: 4; grid-column: 1; width: 70px; justify-self: start; background: salmon;">1</item> <item style="grid-row: 1; grid-column: 1; width: 20px; justify-self: start; background: salmon;">2</item> <item style="grid-row: 1 / span 2; grid-column: 1; width: 20px; margin-left: 20px; justify-self: start; background: salmon;">3</item> <item style="grid-row: 1 / span 4; grid-column: 2; width: 20px; background: salmon;">4</item> <item style="grid-row: 2 / span 2; grid-column: 1; width: 10px; justify-self: start; background: green;">5</item> </div> <div class="grid-fill"> <item style="grid-row: 4; grid-column: 1; width: 70px; justify-self: start; background: salmon;">1</item> <item style="grid-row: 1; grid-column: 1; width: 20px; justify-self: start; background: salmon;">2</item> <item style="grid-row: 1 / span 2; grid-column: 1; width: 20px; margin-left: 50px; justify-self: start; background: salmon;">3</item> <item style="grid-row: 1 / span 4; grid-column: 2; width: 20px; justify-self: end; background: salmon;">4</item> <item style="grid-row: 2 / span 2; grid-column: 1; width: 10px; margin-left: 10px; justify-self: start; background: green;">5</item> </div> <div class="grid"> <item style="grid-row: 4; grid-column: 1; width: 70px; justify-self: start; background: salmon;">1</item> <item style="grid-row: 1; grid-column: 1; width: 20px; justify-self: start; background: salmon;">2</item> <item style="grid-row: 1 / span 2; grid-column: 1; width: 50px; margin-left: 20px; justify-self: start; background: salmon;">3</item> <item style="grid-row: 1 / span 4; grid-column: 2; width: 20px; background: salmon;">4</item> <item style="grid-row: 2 / span 2; grid-column: 1; width: 20px; justify-self: start; background: green;">5</item> </div> <div class="grid-fill"> <item style="grid-row: 4; grid-column: 1; width: 70px; justify-self: start; background: salmon;">1</item> <item style="grid-row: 1; grid-column: 1; width: 20px; justify-self: start; background: salmon;">2</item> <item style="grid-row: 1 / span 2; grid-column: 1; width: 20px; margin-left: 35px; justify-self: start; background: salmon;">3</item> <item style="grid-row: 1 / span 4; grid-column: 2; width: 20px; justify-self: center; background: salmon;">4</item> <item style="grid-row: 2 / span 2; grid-column: 1; width: 10px; margin-left: 5px; justify-self: start; background: green;">5</item> </div> </body> </html>