overscroll-behavior-y
Limited availability96% of users
Controls what happens when you reach the end of a vertical scroll zone. This is the most common way to stop the background page from scrolling when a popup or menu is open.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- non-replaced block and inline-block elements
- Animation type
- discrete
Quick example
.sidebar-nav {
/* Stops the main page from scrolling when the sidebar reaches the bottom */
overscroll-behavior-y: contain;
}Values
containnoneautooverscroll-behavior-y browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage96%of people can use this4% use a browser without it.
Browsers
144+
150+
18+Mobile
144+Android
150+Android