About the CSS Property "overscroll-behavior"
CSS overscroll-behavior
The overscroll-behavior property controls how a scroll container behaves when it reaches its boundary, including whether scroll chaining or overscroll effects occur. See the CSS Working Group specification.
It helps prevent unwanted "bounce" effects, scroll chaining to parent elements, or accidental page scrolling — particularly useful for touch devices and nested scroll containers, like modals.
Key values
-
auto – Default behavior. Scroll can propagate to parent containers.
-
contain – Prevents scroll chaining but may still show visual boundary effects like bounce.
-
none – Prevents both scroll chaining and overscroll effects.
Common use cases
-
A modal's scrollable content, to prevent scrolling from chaining to the page behind it.
-
Nested scrollable sections like carousels or chat windows.
-
Smoother scrolling experiences on mobile devices.
Can I Use reports support covering about 97% of global usage, based on October 2026 data. Some browsers still lack support, while Internet Explorer 10 and 11 have partial support, so consider fallbacks if you need to support them. Check Can I Use: Overscroll Behavior for the latest compatibility data.