News for hackers. Stuff that matters.
Re:Mobile-First CSS: Is It Time for a Rethink? by madeofpalk on Monday June 20, 2022 @06:52AM (#31808735)
I'm not sure exactly about how scrollbar width plays into it, but the Large/Small/Dynamic Viewport Units help out with this https://css-tricks.com/the-large-small-and-dynamic-viewports...

Doesn't look like they're supported by Chrome yet, but they're there in Firefox and Safari.

Re:Mobile-First CSS: Is It Time for a Rethink? by chrismorgan on Monday June 20, 2022 @07:23AM (#31808969)
Those new viewport units only fix the issues with retractable chrome as commonly employed on mobile platforms. They completely ignored the scrollbars issue which has been a design bug from the very start (though there used to be a workaround—`overflow: scroll` on the body—but it was removed from the spec after only Firefox ever implemented it), which I cynically say is because it’s not an issue on mobile platforms which uniformly use overlay scrollbars.