Two Rules, No JavaScript The four lines of CSS that killed my scroll-lock JavaScript overscroll-behavior: contain now locks the page behind an open dialog in Chrome, Edge and Firefox - plus the :modal refinement and where Safari stands. EN· July 21, 2026 ·Published inCode