CSS overscroll-behavior-inline Property
Description
The overscroll-behavior-inline property controls what the user agent does when a scroll operation reaches the boundary along the inline axis of an element. In practice this means it determines whether boundary interactions — such as scroll chaining to ancestor scroll containers, edge "bounce" effects, or built-in navigation gestures — are allowed to continue once the inline edge is hit, or whether those default responses are suppressed so the gesture stays confined to that element. Because it targets the inline axis only, it affects the direction that corresponds to the inline progression of text (horizontal in many languages, but not always).
This property is particularly useful for components that rely on confined inline panning: horizontal carousels, image sliders, timeline scrollers, or any nested scrollable UI where you want to prevent a drag from escaping into a parent container or triggering a browser-level navigation. It works together with the shorthand overscroll-behavior and the other axis-specific controls, and complements gesture-related controls such as touch-action so you can both prevent default browser gestures and control which pointer/touch gestures are allowed to begin. Using it helps create smoother, more predictable interactions when multiple scrollable layers or pan gestures are present.
Keep in mind that the physical axis governed by this property depends on text flow and layout orientation: the inline axis is defined by writing-mode and can be affected by direction, so the same rule may control left/right in one locale and top/bottom in another. It is not a security mechanism — it only suppresses ordinary overscroll responses from the user agent, and assistive technologies or other browser features might still provide alternative navigation. Finally, pairing inline overscroll control with complementary techniques such as snapping (scroll-snap-type) or careful focus management yields the most polished, accessible scrolling experiences.
Definition
- Initial value
- auto
- Applies to
- non-replaced block-level elements and non-replaced inline-block elements
- Inherited
- no
- Computed value
- as specified
- Animatable
- yes
- JavaScript syntax
- object.style.overscrolBehaviorInline
Syntax
overscroll-behavior-inline: auto | contain | none
Values
- autoThe default scroll overflow behavior occurs as normal.
- containDefault scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighboring scrolling areas, e.g. underlying elements will not scroll.
- noneNo scroll chaining occurs to neighboring scrolling areas, and default scroll overflow behavior is prevented.
Example
Browser Support
The following information will show you the current browser support for the CSS overscroll-behavior-inline property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
