Re: [csswg-drafts] Proposal: `scrollbar-offset` property (#12385)

> "Automatically" how?

In your original demo, the UA knows where the rounding of the box caused by the `border-radius` starts, so it could automatically inset the scrollbar to draw only up to that point. E.g. this here would be the scrollbar at scroll offset `0`:

<img width="424" height="367" alt="Image" src="https://github.com/user-attachments/assets/c22d5bea-6e57-44b1-9809-332a04a18249" />

It could be a declaration on the scroller to indicate that the scrollbar should cater for the shape of the element.

(But with a `border-radius` of `999999999px` that might leave one with no scrollbar … unless [following the shape of the element](https://codepen.io/jh3y/pen/gOEgxbd) would become a thing one day, but that’s a whole different feature request I guess 😅)

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


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

Received on Wednesday, 12 November 2025 20:46:13 UTC