News for hackers. Stuff that matters.
Re:Defensive CSS by genuine_smiles on Friday December 10, 2021 @02:13AM (#29507272)
> Neither location mentions what should I think be by far the main purpose of scrollbar-gutter: avoiding layout shift when you open a modal and disable the page’s scrollbar to avoid confusion.

This can already be avoided by layering things right and not removing the scrollbar.

Re:Defensive CSS by chrismorgan on Friday December 10, 2021 @02:58AM (#29507530)
If you don’t remove the scrollbar, then the document can be scrolled underneath the modal. You can, these days, significantly mitigate this with overscroll-behavior on the modal backdrop, but the document scrollbar itself still works. (I will note, however, that overscroll-behavior is still missing on Safari. And scrollbar-gutter isn’t on Safari and is still disabled by default on Firefox.)
Re:Defensive CSS by vcryan on Friday December 10, 2021 @08:43AM (#29509709)
I think in a lot of cases, allowing the content below a modal to scroll is okay. If the user wants to scroll the content beneath a modal... so be it