rule-inset
Limited availability68% of usersExperimental
Moves the ends of the lines in both column and row gaps. Positive lengths pull the ends in and negative lengths push them out. The overlap-join keyword stretches lines into each crossing so they join neatly. With overlap-join, free ends stay where they are. It sets column-rule-inset and row-rule-inset to the same value. 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
See individual properties- Inherited
- No
- Applies to
- grid containers, flex containers, multicol containers and grid lanes containers
Quick example
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
rule: 2px solid #cbd5e1;
rule-break: intersection;
rule-inset: overlap-join;
}Values
<length-percentage>overlap-joinrule-inset 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.
Usage68%of people can use this32% use a browser without it.
Browsers
149+
149+Mobile
149+Android