CSS overscroll-behavior-block Property

❮ Previous Reference Next ❯

Example

main > div {
  height: 300px;
  width: 400px;
  overflow: auto;
  position: relative;
  top: 50px;
  left: 50px;
  overscroll-behavior-block: contain;
}

Meaning:

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

Default value:auto
Inherited:No
Animatable:No
Version:CSS3
JavaScript syntax:
object.style.overscrollBehaviorBlock="auto|contain|none|initial|inherit|revert|revert-layer|unset";



Standard Syntax

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



Browser Support




Status







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-block: auto;
}
❮ Previous Reference Next ❯