CKTIS / CSS
CSS property `rule-break`
The `rule-break` shorthand gives `column-rule-break` and `row-rule-break` the same value, controlling decoration splits at visible intersections: `none` runs through, `normal` is layout-dependent, and `intersection` splits at every T or cross.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<'column-rule-break'>The rule-break shorthand gives column-rule-break and row-rule-break the same value, controlling decoration splits at visible intersections: none runs through, normal is layout-dependent, and intersection splits at every T or cross.
The example compares none and intersection in two full grids. The first has a red pixel at the crossing center and the second a white pixel, while both longhands of the second compute to intersection.
Grammar: <'column-rule-break'>.
In grid, normal breaks at a T but continues through a cross; in flex it acts as none, while multicol and grid-lanes vary by axis. intersection can expose the background at a junction. This discrete CSS Gaps Editor’s Draft feature needs @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;position:absolute;top:0}#none{left:0;rule-break:none}#intersection{left:150px;rule-break:intersection}</style><div id="none" class="grid"><i></i><i></i><i></i><i></i></div><div id="intersection" class="grid"><i></i><i></i><i></i><i></i></div><pre id="result"></pre><script>const a=getComputedStyle(none),b=getComputedStyle(intersection);if(a.ruleBreak!=='none'||b.ruleBreak!=='intersection'||b.rowRuleBreak!=='intersection'||b.columnRuleBreak!=='intersection')throw new Error('break mismatch');result.textContent='break='+a.ruleBreak+'/'+b.ruleBreak+'; row='+b.rowRuleBreak+'; column='+b.columnRuleBreak;</script>Result
break=none/intersection; row=intersection; column=intersection
The example compares `none` and `intersection` in two full grids. The first has a red pixel at the crossing center and the second a white pixel, while both longhands of the second compute to `intersection`.