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

I don’t think `scrollbar-inline-size` is a solution to the `100vw` problem that’s being discussed in this issue. See my comment in https://github.com/w3c/csswg-drafts/issues/4691#issuecomment-1715038961 for why I think that is.

If CSS won’t answer the question “Is a vertical classic scrollbar currently present on the page?”, then I think the best way to deal with the `100vw` problem would be to reduce the size of `100vw` when `scrollbar-gutter: stable` or `overflow-y: scroll` is set on `<html>`, as proposed in https://github.com/w3c/csswg-drafts/issues/5254. With that change, `width: 100vw` would no longer cause horizontal overflow on pages with stable gutters. That seems to be the best we can do.

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


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

Received on Tuesday, 12 September 2023 06:09:34 UTC