rule-overlap
Limited availability67% of usersExperimental
Decides which lines are painted on top where row rules and column rules cross. The default, row-over-column, puts the row lines on top. column-over-row puts the column lines on top. It applies to grid, flex and grid lanes containers, not multi-column ones. It works in Chrome, Edge and Opera so far.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
row-over-column- Inherited
- No
- Applies to
- grid containers, flex containers and grid lanes containers
- Animation type
- discrete
Quick example
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
column-rule: 4px solid #2563eb;
row-rule: 4px solid #dc2626;
rule-overlap: column-over-row;
}Values
row-over-columncolumn-over-rowrule-overlap browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage67%of people can use this33% use a browser without it.
Browsers
149+
149+Mobile
149+Android