Rule-overlap - CSS Property
Summary of characteristics of the rule-overlap property
row-over-column | column-over-rowrow-over-columnDiscrète: during an animation, the rule-overlap property passes from one value to another without transition.Single: single value (no order).Syntax diagram of rule-overlap.
rule-overlap property.The links in the diagram provide more details about the values.
Download the diagram in SVG.
Description of the rule-overlap property.
This page will be updated soon.
The rule-overlap property sets whether the borders separating rows or those separating columns are drawn first. In other words, it determines
which ones will be visible at the intersections. This property applies to grid containers, flex-box containers, and any other container that displays
blocks in rows or columns.
See the page on rule for a summary of the properties related to gap separators.
Values for rule-overlap.
- rule-overlap: row-over-column;
The row separator lines (blue) go over the column separator lines (red). This is the default value of the property.
Here’s what it looks like on a grid container, and on a flexbox container.
GrilleABCDEFGHI
JKLMNOPQR
STUVWXYZrow-overlap:row-over-column;Flex-boxABCDEFGHIJKLMNOPQRSTUVWXYZrow-overlap:row-over-column; - rule-overlap: column-over-row;
These are the column separation lines (red) that go over those of the rows (blue). It's likely that this won't work on your browser.
GrilleABCDEFGHI
JKLMNOPQR
STUVWXYZrow-overlap:column-over-row;Flex-boxABCDEFGHIJKLMNOPQRSTUVWXYZrow-overlap:column-over-row; - rule-overlap: initial; (
row-over-column) rule-overlap: inherit; rule-overlap: revert; rule-overlap: revert-layer; rule-overlap: revert-rule; rule-overlap: unset;Common values are presented on these pages:
initial,inherit,revert,revert-layer,revert-rule,unset.
Animation of the rule-overlap property.
The rule-overlap property will animate in a discrete way (sudden jump from one value to another) as soon as browsers recognize it.
But the effect is barely noticeable, even with 10-pixel-thick lines like in our example.
J
S
Simulator.
The simulator lets you test the property on a grid container.
J
S
Browsers compatibility with rule-overlap.
For now (2026), only two major browsers handle the property rule-overlap: , , and a few mobile browsers.
rule-overlap property, which defines whether it's the decorative borders between columns or those between rows that go on top.rule-overlapproperty
Browsers on computers :
Mobile browsers :
Outdated or marginal browsers :

Internet Explorer

UC Browser pour Androïd

Opéra Mobile

QQ Browser

Baidu Browser

Safari

Safari sur IOS

Opéra

Samsung Internet

Chrome

Edge

Firefox

Chrome pour Androïd

Androïd Brower

Firefox pour Androïd

KaiOS Browser

Opéra mini
Historic of the rule-overlap property.
-
CSS Gap Decorations Module Level 1.
This module covers the rules that define gutters between columns in a multi-column container (grid, flex-box...). It extends these possibilities to gutters between elements arranged in multiple rows, allowing these features to be used on other types of containers. Several properties define how these gutters should be drawn.
Regardingrule-overlapFirst introduction of therule-overlapproperty.April 17, 2025Working Draft.
Voir aussi, à propos des décorations d'espaces.
The CSS Gap Decorations Module. groups together the properties that concern decorative borders, including those that were previously in the
"CSS Multi-Column module" (like the ones whose names start with column-rule...). Here are these properties:



