row-rule-visibility-items
Limited availability67% of usersExperimental
Decides which parts of a row gap get a line when cells next to it are empty. all draws every part. around draws a part if an item sits on at least one side. between draws it only when items sit on both sides. normal acts like all. It applies to grid and multi-column containers, not flex. The rule-visibility-items shorthand sets it together with column-rule-visibility-items. 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
normal- Inherited
- No
- Applies to
- Grid and multi-column containers
- Animation type
- discrete
Quick example
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
row-rule: 1px solid #ddd;
row-rule-visibility-items: between;
}Values
allaroundbetweennormalrow-rule-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