CKTIS / CSS
CSS property `row-rule-width`
The `row-rule-width` property sets thicknesses for successive gap decorations. A `2px, 6px` list repeats across gaps; `thin`, `medium`, `thick`, and `repeat()` patterns are also allowed, while negative values are invalid.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<line-width-list> | <auto-line-width-list>The row-rule-width property sets thicknesses for successive gap decorations. A 2px, 6px list repeats across gaps; thin, medium, thick, and repeat() patterns are also allowed, while negative values are invalid.
The example sets row-rule-width:2px,6px with a fixed red solid style. The computed value contains two absolute lengths, and pixels measure a two-pixel and six-pixel band without affecting grid height.
Grammar: <line-width-list> | <auto-line-width-list>.
Width alone paints nothing with row-rule-style:none; computed lengths are snapped like a border width. Lists apply in grid, flex, multicol, and grid-lanes, but as a CSS Gaps Editor’s Draft feature they need @supports and spacing that stays clear without a separator.
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-style:solid;row-rule-color:red;row-rule-width:2px,6px}</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.rowRuleWidth!=='2px, 6px'||h!==100)throw new Error('width mismatch '+[s.rowRuleWidth,h]);result.textContent='widths='+s.rowRuleWidth+'; height='+h;</script>Result
widths=2px, 6px; height=100
The example sets `row-rule-width:2px,6px` with a fixed red solid style. The computed value contains two absolute lengths, and pixels measure a two-pixel and six-pixel band without affecting grid height.