Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/flex/flex-gap-decorations-023.html
<!DOCTYPE html> <title> CSS Gap Decorations: flex gaps are painted when going from no gap rule to a gap rule that would be visible. </title> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="match" href="../agnostic/gap-decorations-006-ref.html"> <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> <style> body { margin: 0px; } .flex-container { height: 110px; width: 110px; display: flex; column-gap: 10px; row-gap: 10px; flex-wrap: wrap; } .flex-item { background: skyblue; width: 50px; } </style> <script> function setup() { const button = document.getElementById('btn'); button.click(); } function setDecorations() { const container = document.querySelector('.flex-container'); if (container) { container.style.columnRuleStyle = 'solid'; container.style.columnRuleWidth = '10px'; container.style.columnRuleColor = 'pink'; container.style.rowRuleStyle = 'solid'; container.style.rowRuleWidth = '10px'; container.style.rowRuleColor = 'green'; } } </script> <body onload="setup()"> <div class="flex-container"> <div class="flex-item"></div> <div class="flex-item"></div> <div class="flex-item"></div> <div class="flex-item"></div> </div> <button onclick="setDecorations()" id="btn">Set decorations</button> </body>
/css/css-gaps/agnostic/gap-decorations-006-ref.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> <style> body { margin: 0px; } .container { display: flex; width: 110px; height: 110px; column-gap: 10px; row-gap: 10px; flex-wrap: wrap; } .item { background: skyblue; height: 50px; width: 50px; margin: 0; } .row-gap { position: absolute; top: 50px; background: green; width: 110px; height: 10px; } .column-gap { position: absolute; top: 0px; left: 50px; background: pink; height: 110px; width: 10px; } </style> <div class="container"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> <button id="btn">Set decorations</button> <div class="column-gap"></div> <div class="row-gap"></div>