Re: [csswg-drafts] [css-values] Use of 100vw is causing pointless horizontal scrollbars on some websites (#6026)

> This resolution might be a little scary for existing sites who are already working around this problem via something like:
width: calc(100vw - var(--scrollbar-width))

I might confirm that in our product we have at least 12 places where we have almost exactly this: we detect the current scrollbar width, apply it as a variable, and then subtract when necessary from the `100vw`.

That said, we're not using `overflow: scroll` or `scrollbar-gutter: stable` on the root scroller, so for us this _should be_ safe. And, overall, that requirement would probably reduce the potential impact.

Then, the impact itself would _usually_ not be very drastic, in most cases resulting in something being a bit narrower than necessary. Still a concern, though.

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6026#issuecomment-1832656159 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 29 November 2023 20:31:06 UTC