CSS overscroll-behavior-x Property

❮ Previous Reference Next ❯


.example {
  height: 250px;
  overflow: auto;
  overscroll-behavior-x: contain;


The overscroll-behavior-x CSS property sets the browser's behavior when the horizontal boundary of a scrolling area is reached.

Default value:auto
JavaScript syntax:

Standard Syntax

overscroll-behavior-x: auto|contain|none|initial|inherit|revert|revert-layer|unset;

Browser Support


Property Values

The following table describes the values of this property:

Value Description
auto The default scroll overflow behavior occurs as normal.
contain Default 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.
none No scroll chaining occurs to neighboring scrolling areas, and default scroll overflow behavior is prevented.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  overscroll-behavior-x: auto;
❮ Previous Reference Next ❯