Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/grid/grid-gap-decorations-collapsed-trailing-auto-fit.html
<!DOCTYPE html> <title> CSS Gap Decorations: Row rule paints correctly with a trailing collapsed `repeat(auto-fit, ...)` row range. </title> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> <link rel="match" href="grid-gap-decorations-collapsed-trailing-auto-fit-ref.html"> <link rel="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com"> <style> body { margin: 0; } .grid { display: grid; grid-template-columns: 100px 100px 100px; grid-template-rows: 100px 100px repeat(auto-fit, 100px); gap: 10px; width: 320px; height: 430px; align-content: start; row-rule: 6px solid red; row-rule-visibility-items: around; rule-inset: 0px; } .item { width: 100%; height: 100%; background: lightgray; opacity: 0.8; } </style> <div class="grid"> <div class="item" style="grid-column: 1 / 4; grid-row: 1 / 2"></div> <div class="item" style="grid-column: 1 / 4; grid-row: 2 / 3"></div> </div>
/css/css-gaps/grid/grid-gap-decorations-collapsed-trailing-auto-fit-ref.html
<!DOCTYPE html> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> <link rel="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com"> <style> body { margin: 0; } .grid { display: grid; grid-template-columns: 100px 100px 100px; /* Two explicit row tracks. Same rendered geometry as the test's `100px 100px repeat(auto-fit, 100px)` after the trailing auto-fit tracks collapse. */ grid-template-rows: 100px 100px; gap: 10px; width: 320px; height: 430px; align-content: start; row-rule: 6px solid red; row-rule-visibility-items: around; rule-inset: 0px; } .item { width: 100%; height: 100%; background: lightgray; opacity: 0.8; } </style> <div class="grid"> <div class="item" style="grid-column: 1 / 4; grid-row: 1 / 2"></div> <div class="item" style="grid-column: 1 / 4; grid-row: 2 / 3"></div> </div>