overscroll-behavior-inline
Limited availability96% of users
A logical property that controls what happens when you reach the end of a scroll area in the inline (horizontal) direction. It prevents 'scroll chaining' to the parent container.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- non-replaced block and inline-block elements
- Animation type
- discrete
Quick example
.horizontal-gallery {
/* Stops the whole page from scrolling sideways when the gallery ends */
overscroll-behavior-inline: contain;
}Values
containnoneautooverscroll-behavior-inline 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.
Usage96%of people can use this4% use a browser without it.
Browsers
144+
150+
144+Mobile
144+Android
150+Android