overscroll-behavior-block

A logical property that controls what happens when you reach the end of a scroll area in the block (vertical) direction. It prevents 'scroll chaining' to the parent container.

Quick example

.modal-body {
  /* Prevents the background page from scrolling when the modal reaches the end */
  overscroll-behavior-block: contain;
}

Quick facts

Initial value
auto
Inherited
No
Applies to
non-replaced block and inline-block elements
Animation type
discrete

Values

containnoneauto

overscroll-behavior-block Browser Support

Widely available Since 2022 94% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.

Safe to use without fallbacks.

77+
73+
16+
79+
ESC