CKTIS / CSS
CSS property `row-rule-inset-end`
The `row-rule-inset-end` shorthand sets the same value on `row-rule-inset-cap-end` and `row-rule-inset-junction-end`, covering logical ends of both free segments and segments ending at a junction. A positive `20px` moves each end toward start.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<inset-value>The row-rule-inset-end shorthand sets the same value on row-rule-inset-cap-end and row-rule-inset-junction-end, covering logical ends of both free segments and segments ending at a junction. A positive 20px moves each end toward start.
The example applies row-rule-inset-end:20px; Chromium computes 20 pixels for both longhands, while samples show the right end of a simple rule shortened without moving its start.
Grammar: <inset-value>.
A negative value extends ends in the end direction, and overlap-join forms a join at a junction but acts as zero at a cap. As a shorthand, the declaration overwrites both end components. The feature comes from the evolving CSS Gaps Editor’s Draft; gate it with @supports.
Examples
<!doctype html><meta charset="utf-8"><style>html,body{margin:0;background:white}#grid{display:grid;grid-template-rows:20px 20px;row-gap:20px;width:100px;row-rule:4px solid red;row-rule-inset-end:20px}</style><div id="grid"><i></i><i></i></div><pre id="result"></pre><script>const s=getComputedStyle(grid),v=[s.rowRuleInsetEnd,s.rowRuleInsetCapEnd,s.rowRuleInsetJunctionEnd];if(v.join('|')!=='20px|20px|20px')throw new Error('inset-end mismatch '+v);result.textContent='shorthand='+v[0]+'; cap-end='+v[1]+'; junction-end='+v[2];</script>Result
shorthand=20px; cap-end=20px; junction-end=20px
The example applies `row-rule-inset-end:20px`; Chromium computes 20 pixels for both longhands, while samples show the right end of a simple rule shortened without moving its start.