Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

CSS property `row-rule-inset-junction`

The `row-rule-inset-junction` shorthand sets `row-rule-inset-junction-start` and `row-rule-inset-junction-end` only for endpoints that meet another painted decoration at a gap junction. One value addresses both; two distinguish logical start and 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-junction shorthand sets row-rule-inset-junction-start and row-rule-inset-junction-end only for endpoints that meet another painted decoration at a gap junction. One value addresses both; two distinguish logical start and end.

The example combines row-rule-break:intersection with 8px in a 2×2 grid. Chromium computes 8/8, and pixels show both red arms retreating eight pixels from the blue crossing rule.

Grammar: <inset-value> <inset-value>?.

Positive values open space around the junction; negative values extend segments into it. overlap-join computes controlled overlap using the crossing rule width and does not behave that way at a cap. This is an evolving CSS Gaps Editor’s Draft feature, so use @supports.

Examples

<!doctype html><meta charset="utf-8"><style>html,body{margin:0;background:white}#grid{display:grid;grid-template:20px 20px/40px 40px;gap:20px;width:100px;row-rule:4px solid red;column-rule:4px solid blue;row-rule-break:intersection;row-rule-inset-junction:8px}</style><div id="grid"><i></i><i></i><i></i><i></i></div><pre id="result"></pre><script>const s=getComputedStyle(grid),v=[s.rowRuleInsetJunction,s.rowRuleInsetJunctionStart,s.rowRuleInsetJunctionEnd];if(v.join('|')!=='8px|8px|8px')throw new Error('junction mismatch '+v);result.textContent='shorthand='+v[0]+'; start/end='+v[1]+'/'+v[2];</script>

Result

shorthand=8px; start/end=8px/8px

The example combines `row-rule-break:intersection` with `8px` in a 2×2 grid. Chromium computes 8/8, and pixels show both red arms retreating eight pixels from the blue crossing rule.

Sources