Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/grid/subgrid/subgrid-gap-decorations-019.html
<!DOCTYPE html> <title> CSS Gap Decorations: Subgrid gap segments are painted properly with empty areas. Tests scenario where subgrid spans entire grid with `*rule-visibility-items: around` and `*-rule-break: intersection`. </title> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> <link rel="match" href="../grid-gap-decorations-054-ref.html"> <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> <style> body { margin: 0px; } .grid { display: grid; grid-template: repeat(3, 100px) / repeat(3, 100px); gap: 20px; } .subgrid { display: grid; grid-template: subgrid / subgrid; grid-row: 1/-1; grid-column: 1/-1; column-rule: 6px solid blue; row-rule: 6px solid red; rule-inset: 0px; column-rule-visibility-items: around; row-rule-visibility-items: around; column-rule-break: intersection; row-rule-break: intersection; } .item { width: 100%; height: 100%; background: lightgrey; opacity: 0.8; } </style> <div class="grid"> <div class="subgrid"> <div class="item" style="grid-area: 1 / 1 / 2 / 3"></div> <div class="item" style="grid-area: 1 / 3 / 4 / 4"></div> <div class="item" style="grid-area: 2 / 1 / 3 / 2"></div> </div> </div>
/css/css-gaps/grid/grid-gap-decorations-054-ref.html
<!DOCTYPE html> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> <style> body { margin: 0px; } .grid { display: grid; grid-template: repeat(3, 100px) / repeat(3, 100px); gap: 20px; position: relative; } .item { width: 100%; height: 100%; background: lightgray; opacity: 0.8; } .col-gaps { display: flex; position: absolute; top: 0; left: 107px; column-gap: 114px; } .col-gap-1-group { display: flex; flex-direction: column; justify-content: center; height: 340px; } .col-gap { background: blue; width: 6px; height: 100px; } .col-gap-2-group { display: flex; flex-direction: column; justify-content: center; row-gap: 20px; height: 340px; } .row-gaps { display: flex; flex-direction: column; position: absolute; top: 107px; left: 0px; row-gap: 114px; } .row-gap-1-group { display: flex; flex-direction: row; justify-content: start; width: 340px; column-gap: 20px; } .row-gap { background: red; width: 100px; height: 6px; } .row-gap-2-group { display: flex; flex-direction: row; justify-content: start; column-gap: 20px; height: 340px; } </style> <div class="grid"> <div class="item" style="grid-area: 1 / 1 / 2 / 3"></div> <div class="item" style="grid-area: 1 / 3 / 4 / 4"></div> <div class="item" style="grid-area: 2 / 1 / 3 / 2"></div> <div class="col-gaps"> <div class="col-gap-1-group"> <div class="col-gap"></div> </div> <div class="col-gap-2-group"> <div class="col-gap"></div> <div class="col-gap"></div> <div class="col-gap"></div> </div> </div> <div class="row-gaps"> <div class="row-gap-1-group"> <div class="row-gap"></div> <div class="row-gap"></div> </div> <div class="row-gap-2-group"> <div class="row-gap"></div> </div> </div> </div>