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

> Has anyone ever suggested a dynamic environment variable that would return the _current_ viewport size reduction caused by a classic scrollbar on the page? Would that be possible? Would that make sense?

In https://github.com/web-platform-tests/interop-2022-viewport/issues/15#issuecomment-1268596477 this was discussed, and @emilio noted that you can’t have a dynamic value because it depends on layout and can cause layout cycles: _“Only reasonable thing to expose is the default size”_ … which brings us back to `env(scrollbar-inline-size)`.

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


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

Received on Monday, 11 September 2023 06:34:38 UTC