rule-visibility-items
Limited availability67% of usersExperimental
Decides whether lines in both column and row gaps are drawn next to empty areas. all draws every part, around needs an item on at least one side and between needs items on both sides. It sets column-rule-visibility-items and row-rule-visibility-items to the same value. It applies to grid and multi-column containers. 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 and multicol containers
Quick example
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
rule: 1px solid #cbd5e1;
rule-visibility-items: between;
}Values
allaroundbetweennormalrule-visibility-items 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