overscroll-behavior-inline
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.
Quick example
.horizontal-gallery {
/* Stops the whole page from scrolling sideways when the gallery ends */
overscroll-behavior-inline: contain;
}Quick facts
Initial value
autoInherited
No
Applies to
non-replaced block and inline-block elements
Animation type
discrete
Values
containnoneautooverscroll-behavior-inline Browser Support
Limited availability94% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Not ready for production without a fallback.
144+
150+
144+