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.
It is documented as part of the CSS Overscroll Behavior specification.
Syntax
/* Usage Example */
.horizontal-gallery {
/* Stops the whole page from scrolling sideways when the gallery ends */
overscroll-behavior-inline: contain;
}
/* Syntax */
overscroll-behavior-inline: contain;
overscroll-behavior-inline: none;
overscroll-behavior-inline: auto;
/* Global values */
overscroll-behavior-inline: inherit;
overscroll-behavior-inline: initial;
overscroll-behavior-inline: revert;
overscroll-behavior-inline: revert-layer;
overscroll-behavior-inline: unset;
overscroll-behavior-inline Browser support
Widely available
Since
2022 94% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.
77+
73+
16+
79+