- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Thu, 16 Nov 2023 19:04:04 +0000
- To: public-css-archive@w3.org
> > Given `scrollbar-width` can change the scrollbar width on a per element basis I don't think `env(scrollbar-inline-size)` being a static value from the engine (e.g. 15px) would actually solve the issues. > > Maybe a second env var that exposes the thin size – e.g. `thin-scrollbar-inline-size` – would help here? If authors have set `scrollbar-width: thin;`, then they should use `env(thin-scrollbar-inline-size)` in their calculations. Otherwise (in case of `scrollbar-width: auto;`), they should use `env(scrollbar-inline-size)` I believe a proper solution needs to be context aware. So basically the opposite of what @emilio [wrote earlier](https://github.com/w3c/csswg-drafts/issues/4691#issuecomment-577282357) because use cases want to consider the actual scrollbar width in their calculations. With a contextual value, authors don't have to care about whether there are normal or thin scrollbars or no scrollbars at all. That means, there should only be one keyword that refers to the width of the scrollbars of the nearest scroll container. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4691#issuecomment-1815125986 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 November 2023 19:04:06 UTC