Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/grid/grid-gap-decorations-065.html
<!DOCTYPE html> <title> CSS Gap Decorations: Grid gap segments are painted properly with empty areas. Tests scenario where *rule-visibility-items is `around` and *rule-break is `none`. </title> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> <link rel="match" href="grid-gap-decorations-065-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; row-rule: 6px solid red; column-rule: 6px solid blue; rule-inset: 0px; column-rule-visibility-items: around; row-rule-visibility-items: around; column-rule-break: none; row-rule-break: none; } .item { width: 100%; height: 100%; background: lightgray; opacity: 0.8; } </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>
/css/css-gaps/grid/grid-gap-decorations-065-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; z-index: -1; } .col-gap-1-group { display: flex; flex-direction: column; justify-content: top; height: 340px; } .col-gap { background: blue; width: 6px; height: 100px; } .col-gap-2-group { display: flex; flex-direction: column; justify-content: top; 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: space-between; width: 340px; column-gap: 20px; } .row-gap { background: red; width: 100px; height: 6px; z-index: -1; } .row-gap-2-group { display: flex; flex-direction: row; justify-content: space-between; 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" style="height: 220px;" ></div> </div> <div class="col-gap-2-group"> <div class="col-gap" style="height: 340px;"></div> </div> </div> <div class="row-gaps"> <div class="row-gap-1-group"> <div class="row-gap" style="width: 340px;"></div> </div> <div class="row-gap-2-group"> <div class="row-gap"></div> <div class="row-gap"></div> </div> </div> </div>