Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/item-placement/flow-tolerance/flow-tolerance-row-002.html
<!DOCTYPE HTML> <html><head> <meta charset="utf-8"> <title>CSS Grid Test: Grid Lanes layout with flow-tolerance: normal (row direction)</title> <link rel="author" title="Apple Inc."> <link rel="help" href="https://drafts.csswg.org/css-grid-3/#placement-tolerance"> <link rel="match" href="flow-tolerance-row-002-ref.html"> <style> html,body { color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0; } grid { display: inline grid-lanes; grid-auto-flow: column; gap: 10px; grid-template-rows: repeat(3, 100px); flow-tolerance: normal; /* Should resolve to 1em (16px) */ color: #444; border: 1px solid; padding: 2px; } item { background-color: #444; color: #fff; padding: 10px; margin: 3px; border: 2px solid blue; } </style> </head> <body> <grid> <item style="width: 70px">1</item> <item style="width: 50px">2</item> <item style="width: 30px">3</item> <item style="width: 70px">4</item> <item style="width: 50px">5</item> <item style="width: 30px">6</item> </grid> </body> </html>
/css/css-grid/grid-lanes/item-placement/flow-tolerance/flow-tolerance-row-002-ref.html
<!DOCTYPE HTML> <html><head> <meta charset="utf-8"> <title>CSS Grid Test: Grid Lanes layout with flow-tolerance: normal (row direction - reference)</title> <style> html,body { color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0; } .outer-grid { display: inline-grid; grid-template-rows: repeat(3, auto); row-gap: 10px; column-gap: 0; color: #444; border: 1px solid; padding: 2px; } .row { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 10px; } item { background-color: #444; color: #fff; padding: 10px; margin: 3px; border: 2px solid blue; height: 70px; box-sizing: content-box; } </style> </head> <body> <div class="outer-grid"> <div class="row"> <!-- Row 1 --> <item style="width: 70px;">1</item> <item style="width: 30px;">6</item> </div> <div class="row"> <!-- Row 2 --> <item style="width: 50px;">2</item> <item style="width: 50px;">5</item> </div> <div class="row"> <!-- Row 3 --> <item style="width: 30px;">3</item> <item style="width: 70px;">4</item> </div> </div> </body> </html>