Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/grid/grid-gap-decorations-033.html
<!DOCTYPE html> <title> CSS Gap Decorations: Decorations are painted when rule thickness is greater than gap size. </title> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="match" href="grid-gap-decorations-033-ref.html"> <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> <style> body { margin: 0px; overflow: hidden; } .grid-container { display: grid; gap: 10px; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(6, 50px); width: 50px; height: 50px; column-rule-color: blue; column-rule-style: solid; column-rule-width: 10px; } </style> <body> <div class="grid-container"></div> <script> const grid = document.querySelector('.grid-container'); grid.style.rowRuleColor = 'red'; grid.style.rowRuleStyle = 'solid'; grid.style.rowRuleWidth = 'repeat(4, 5px), 200px'; </script> </body>
/css/css-gaps/grid/grid-gap-decorations-033-ref.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-gaps-1"> <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> <style> body { margin: 0px; overflow: hidden; } .grid-container { display: grid; grid-gap: 10px; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(6, 50px); width: 50px; height: 50px; } .row-gap { position: absolute; width: 170px; height: 0px; border-bottom: solid 5px red; } .row-gap1 { top: 52.5px; } .row-gap2 { top: 112.5px; } .row-gap3 { top: 172.5px; } .row-gap4 { top: 232.5px; } .row-gap5 { top: 195px; border-bottom: solid 200px red; /*expand the last row gap's height*/ } .col-gap { position: absolute; top: 0px; width: 0px; height: 350px; border-left: solid 10px blue; } .col-gap1 { left: 50px; } .col-gap2 { left: 110px; } </style> <div class="grid-container"></div> <div class="col-gap col-gap1"> </div> <div class="col-gap col-gap2"> </div> <div class="row-gap row-gap1"> </div> <div class="row-gap row-gap2"> </div> <div class="row-gap row-gap3"> </div> <div class="row-gap row-gap4"> </div> <div class="row-gap row-gap5"> </div>