Re: [csswg-drafts] [css-values-4]? A way to explicitly account for scrollbar gutters (#9654)

> For (2), in most cases you don't need to worry about it. If it's a positioned element, `left: 0; right: 0;` will already work as desired, filling the whole space without caring about the gutter (but paying attention to the actual scrollbar, if needed). (iirc; the computer I'm typing this on uses overlay scrollbars so I can't check easily)

I’ve tested this before in https://github.com/w3c/csswg-drafts/issues/8099 and this won’t work as it is right now:

- In Firefox things can get positioned in the left gutter when using `both-edges` but they are not painted
- In Chrome the 0,0 origin is offset by the left gutter

Those could be implementation bugs, though.

---

> @mirisuzanne (and others, in the past) suggested an env() for the default scrollbar width/gutter size

This would also require being able to detect what type of scrollbars are being used (or when forcing them via `::webkit-scrollbar`). Only when classic scrollbars are used along with `both-edges` would one need to subtract that value.

Also see https://gist.github.com/bramus/bcca5788d8ced82837180b7a15760c84 related to this.

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


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

Received on Thursday, 30 November 2023 12:53:34 UTC