overscroll-behavior
A shorthand for setting how the browser handles reaching the boundary of a scroll area in both directions. It helps stop annoying 'scroll chaining'.
Quick example
.scroll-box {
/* Stops all scroll chaining in both horizontal and vertical directions */
overscroll-behavior: contain;
} Quick facts
Initial value
autoInherited
No
Applies to
non-replaced block and inline-block elements
Animation type
discrete
Values
containnoneauto overscroll-behavior Browser Support
Widely available Since 2022 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.
Safe to use without fallbacks.
63+
59+
16+
18+