CKTIS / CSS
CSS property `row-rule-inset-cap-start`
The `row-rule-inset-cap-start` property moves only the logical start of a terminal cap segment. A positive `20px` shortens the rule toward end, while a negative value extends it toward start; the independent `row-rule-inset-cap-end` remains unchanged.
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-cap-start property moves only the logical start of a terminal cap segment. A positive 20px shortens the rule toward end, while a negative value extends it toward start; the independent row-rule-inset-cap-end remains unchanged.
The example uses the same value with direction:ltr and direction:rtl. Pixels show 20 white pixels on the left in LTR and on the right in RTL, proving logical rather than physical mapping.
Grammar: <inset-value>.
A percentage refers to crossing-gap width; for an outer cap its basis is 0. The overlap-join value also acts as zero at a cap. This is an evolving CSS Gaps Editor’s Draft feature, so it needs an @supports gate and must not carry meaning alone.
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-start:20px;position:absolute;top:0}#ltr{left:0;direction:ltr}#rtl{left:150px;direction:rtl}</style><div id="ltr" class="grid"><i></i><i></i></div><div id="rtl" class="grid"><i></i><i></i></div><pre id="result"></pre><script>const a=getComputedStyle(ltr),b=getComputedStyle(rtl),v=[a.rowRuleInsetCapStart,a.rowRuleInsetCapEnd,b.rowRuleInsetCapStart,b.rowRuleInsetCapEnd];if(v.join('|')!=='20px|0px|20px|0px')throw new Error('cap-start mismatch '+v);result.textContent='ltr='+v[0]+'/'+v[1]+'; rtl='+v[2]+'/'+v[3]+'; directions='+a.direction+'/'+b.direction;</script>Result
ltr=20px/0px; rtl=20px/0px; directions=ltr/rtl
The example uses the same value with `direction:ltr` and `direction:rtl`. Pixels show 20 white pixels on the left in LTR and on the right in RTL, proving logical rather than physical mapping.