CKTIS / CSS
CSS property `row-rule-inset-cap`
The `row-rule-inset-cap` shorthand sets `row-rule-inset-cap-start` and `row-rule-inset-cap-end` for segment ends that are not junctions with another painted decoration. One value sets both; two values mean logical start then end.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<inset-value> <inset-value>?The row-rule-inset-cap shorthand sets row-rule-inset-cap-start and row-rule-inset-cap-end for segment ends that are not junctions with another painted decoration. One value sets both; two values mean logical start then end.
The example sets row-rule-inset-cap:10px 20px; Chromium computes 10 pixels for start and 20 for end, while image samples confirm a rule beginning 10 from the left and ending 20 before the right edge.
Grammar: <inset-value> <inset-value>?.
A cap can occur at a container edge or internally where no other painted rule touches the junction. A percentage depends on crossing-gap width, so the basis is zero at an ordinary edge; overlap-join likewise behaves as zero there. This is an evolving Editor’s Draft feature—check @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-cap:10px 20px}</style><div id="grid"><i></i><i></i></div><pre id="result"></pre><script>const s=getComputedStyle(grid),v=[s.rowRuleInsetCap,s.rowRuleInsetCapStart,s.rowRuleInsetCapEnd];if(v.join('|')!=='10px 20px|10px|20px')throw new Error('row-rule-inset-cap mismatch '+v);result.textContent='shorthand='+v[0]+'; start/end='+v[1]+'/'+v[2];</script>Result
shorthand=10px 20px; start/end=10px/20px
The example sets `row-rule-inset-cap:10px 20px`; Chromium computes 10 pixels for start and 20 for end, while image samples confirm a rule beginning 10 from the left and ending 20 before the right edge.