CSS overscroll-behavior-y property

Definition and Usage

overscroll-behavior-y The property is used to disable the scroll chain or over-scroll feedback when trying to scroll beyond the scroll boundaries in the y-direction.

Scroll Chainrefers to the behavior where over-scrolling on an element causes the parent element to scroll. This is the default behavior.

Over-scrollFeedback is provided when the user tries to scroll beyond the scroll boundaries. For example, on mobile devices, when trying to scroll beyond the top of the page, it is usually accompanied by a visual feedback of page refresh.

Example

Disable the scroll chain of the scrollable <div> element:

#yellowDiv {
  overscroll-behavior-y: contain;
}

Try It Yourself

CSS Syntax

overscroll-behavior-y: auto|contain|none|initial|inherit;

Property Value

Value Description
auto Allows scroll chain and over-scroll feedback behavior. Default value.
contain Allows over-scroll feedback behavior but does not allow scroll chain.
none Does not allow over-scroll feedback or scroll chain behavior.
initial Sets this property to its default value. See: initial.
inherit Inherits this property from its parent element. See: inherit.

Technical Details

Default Value: auto
Inheritance: No
Animation Production: Not supported. See:Animation-related properties.
Version: CSS3
JavaScript Syntax: object.style.overscrollBehaviorY="none"

Browser Support

The numbers in the table represent the first browser version to fully support this property.

Chrome Edge Firefox Safari Opera
63.0 18.0 * 59.0 16.0 50.0

* In Microsoft Edge, the property value 'none' is treated as 'contain', which is incorrect.

Related Pages

Reference:CSS overscroll-behavior property

Reference:CSS overscroll-behavior-block property

Reference:CSS overscroll-behavior-inline property

Reference:CSS overscroll-behavior-x property

Reference:CSS scroll-behavior property

Reference:CSS scroll-margin property

Reference:CSS scroll-padding attribute

Reference:CSS scroll-snap-align attribute