Gap decorations (column-rule / row-rule in grid and flex)
Chrome 149 (June 2026). Not Baseline.
Chrome 149
Edge 149
Safari no
Firefox no
Draws rules inside grid/flex gaps with `column-rule` and `row-rule` (plus `*-rule-inset` and `-outset`), so divider lines between cards need no borders or pseudo-elements.
- A
- B
- C
- D
- E
- F
CSS
.fx-058 {
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 16px;
list-style: none;
padding: 0;
font-family: system-ui;
column-rule: 1px solid #ddd;
row-rule: 1px solid #ddd;
column-rule-inset: 4px
}
.fx-058 li {
padding: 16px;
text-align: center
}
HTML
<ul class="fx-058"><li>A</li><li>B</li><li>C</li><li>D</li><li>E</li><li>F</li></ul>Fallback: Other browsers show the grid without lines; add `border` rules under `@supports not (row-rule: 1px solid red)` if dividers are required.
Prompt
Draw dividers between grid or flex items with `column-rule` and `row-rule` on the container (Chrome 149+), not with borders on items. If dividers are essential cross-browser, add a `@supports not (row-rule: 1px solid red)` block with per-item borders.