CKTIS / CSS
CSS property `row-rule-style`
The `row-rule-style` property selects the appearance of successive row-gap decorations. A `solid, dashed` list assigns different styles to successive gaps, `repeat()` abbreviates a pattern, and the initial `none` suppresses painting completely.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<line-style-list> | <auto-line-style-list>The row-rule-style property selects the appearance of successive row-gap decorations. A solid, dashed list assigns different styles to successive gaps, repeat() abbreviates a pattern, and the initial none suppresses painting completely.
The example sets row-rule-style:solid,dashed on a three-row grid. The computed value preserves the two-item list, while pixels show a solid first separator and dashed second separator without changing layout height.
Grammar: <line-style-list> | <auto-line-style-list>.
Styles use border-style semantics and apply in grid, flex, multicol, and grid-lanes. The <auto-line-style-list> syntax handles an unknown gap count; as part of the CSS Gaps Editor’s Draft it needs an @supports check and a readable layout without decorations.
Examples
<!doctype html><meta charset="utf-8"><style>html,body{margin:0;background:white}#grid{display:grid;grid-template-rows:20px 20px 20px;row-gap:20px;width:100px;row-rule-width:4px;row-rule-color:red;row-rule-style:solid,dashed}</style><div id="grid"><i></i><i></i><i></i></div><pre id="result"></pre><script>const s=getComputedStyle(grid),h=Math.round(grid.getBoundingClientRect().height);if(s.rowRuleStyle!=='solid, dashed'||h!==100)throw new Error('style mismatch '+[s.rowRuleStyle,h]);result.textContent='styles='+s.rowRuleStyle+'; height='+h;</script>Result
styles=solid, dashed; height=100
The example sets `row-rule-style:solid,dashed` on a three-row grid. The computed value preserves the two-item list, while pixels show a solid first separator and dashed second separator without changing layout height.