UX Lift logo

Prevent a page from scrolling while a dialog is open | CSS-Tricks

Chrome 144 improves overscroll-behavior by making it applicable to non-scrollable containers, effectively preventing page scrolling when a <dialog> is open, simplifying previous JavaScript solutions.

More from CSS Tricks

© 2026. Made in Manchester by Matt Kevan.

Privacy

Cookies

Contact