Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/column-grid-lanes-justify-self-002.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: Grid Lanes layout with `justify-self` advanced values and safe/unsafe alignment</title> <link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com"> <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment"> <link rel="match" href="column-grid-lanes-justify-self-002-ref.html"> <style> html,body { color:black; background-color:white; font:15px/1 monospace; padding:0; margin:0; } .grid-lanes { display: grid-lanes; gap: 2px; grid-template-columns: repeat(3, 70px); color: #444; border: 1px solid; padding: 2px; height: 150px; margin: 5px; vertical-align: top; } item { background-color: #444; color: #fff; padding: 2px; height: 30px; } .safe-end { justify-self: safe end; background-color: purple; width: 80px; } .safe-center { justify-self: safe center; background-color: teal; width: 75px; } .unsafe-end { justify-self: end; background-color: darkmagenta; width: 80px; } .unsafe-center { justify-self: center; background-color: darkcyan; width: 75px; } .self-start { justify-self: self-start; background-color: darkred; } .self-end { justify-self: self-end; background-color: darkblue; } .normal { justify-self: normal; background-color: brown; } .narrow { width: 20px; } </style> </head> <body> <div class="grid-lanes"> <item class="normal">N1</item> <item class="safe-end">SE1</item> <item class="normal">N2</item> <item class="normal">N3</item> <item class="unsafe-end">UE1</item> <item class="normal">N4</item> </div> <div class="grid-lanes"> <item class="normal">N1</item> <item class="safe-center">SC1</item> <item class="normal">N2</item> <item class="normal">N3</item> <item class="unsafe-center">UC1</item> <item class="normal">N4</item> </div> <div class="grid-lanes"> <item class="self-start narrow">SS1</item> <item class="self-end narrow">SE2</item> <item class="self-start narrow">SS3</item> <item class="self-end narrow">SE4</item> <item class="self-start narrow">SS5</item> <item class="self-end narrow">SE6</item> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/column-grid-lanes-justify-self-002-ref.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> html,body { color:black; background-color:white; font:15px/1 monospace; padding:0; margin:0; } .grid { display: grid; gap: 2px; grid-template-columns: repeat(3, 70px); grid-template-rows: repeat(2, min-content); color: #444; border: 1px solid; padding: 2px; height: 150px; margin: 5px; } item { background-color: #444; color: #fff; padding: 2px; height: 30px; } .safe-end { justify-self: safe end; background-color: purple; width: 80px; } .safe-center { justify-self: safe center; background-color: teal; width: 75px; } .unsafe-end { justify-self: end; background-color: darkmagenta; width: 80px; } .unsafe-center { justify-self: center; background-color: darkcyan; width: 75px; } .normal { justify-self: normal; background-color: brown; } .self-start { justify-self: self-start; background-color: darkred; } .self-end { justify-self: self-end; background-color: darkblue; } .narrow { width: 20px; } </style> </head> <body> <div class="grid"> <item class="normal">N1</item> <item class="safe-end">SE1</item> <item class="normal">N2</item> <item class="normal">N3</item> <item class="unsafe-end">UE1</item> <item class="normal">N4</item> </div> <div class="grid"> <item class="normal">N1</item> <item class="safe-center">SC1</item> <item class="normal">N2</item> <item class="normal">N3</item> <item class="unsafe-center">UC1</item> <item class="normal">N4</item> </div> <div class="grid"> <item class="self-start narrow">SS1</item> <item class="self-end narrow">SE2</item> <item class="self-start narrow">SS3</item> <item class="self-end narrow">SE4</item> <item class="self-start narrow">SS5</item> <item class="self-end narrow">SE6</item> </div> </body> </html>