Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

CSS property `row-rule-inset-start`

The `row-rule-inset-start` shorthand sets `row-rule-inset-cap-start` and `row-rule-inset-junction-start` together. A positive `20px` retreats each segment’s logical start toward its end, while a negative value extends it 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-start shorthand sets row-rule-inset-cap-start and row-rule-inset-junction-start together. A positive 20px retreats each segment’s logical start toward its end, while a negative value extends it toward start.

The example applies row-rule-inset-start:20px to matching LTR and RTL grids. Longhand readings prove shorthand expansion, while pixels show a 20-pixel cutout at the left and right edge respectively.

Grammar: <inset-value>.

A percentage refers to crossing-gap width; at an outer cap its basis is 0, while overlap-join acts as zero there but creates a join at a junction. This is an evolving CSS Gaps Editor’s Draft feature, so 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-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.rowRuleInsetStart,a.rowRuleInsetCapStart,a.rowRuleInsetJunctionStart,b.rowRuleInsetStart,b.rowRuleInsetCapStart,b.rowRuleInsetJunctionStart];if(v.join('|')!=='20px|20px|20px|20px|20px|20px')throw new Error('inset-start mismatch '+v);result.textContent='ltr='+v.slice(0,3).join('/')+'; rtl='+v.slice(3).join('/')+'; directions='+a.direction+'/'+b.direction;</script>

Result

ltr=20px/20px/20px; rtl=20px/20px/20px; directions=ltr/rtl

The example applies `row-rule-inset-start:20px` to matching LTR and RTL grids. Longhand readings prove shorthand expansion, while pixels show a 20-pixel cutout at the left and right edge respectively.

Sources