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
autoInherited
No
Applies to
non-replaced block and inline-block elements
Animation type
discrete
Values
containnoneautooverscroll-behavior-block Browser Support
Limited availability94% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Not ready for production without a fallback.
144+
150+
144+