Re: [csswg-drafts] [css-scrollbars] What is "the background" (#10524)

> I'm guessing that it is effectively transparent towards everything, not just things that are technically background, and it is merely that the content of the scrolling element itself is clipped (to the padding box), so there's nothing to be transparent to.

Yes, that's my understanding of what is happening in Chrome at least. Note that if you set background-attachment: local on the scrolling container the background is also clipped to the padding box: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=13412

Effectively the non-overlay scrollbars (and non-local background) extend beyond the scrolling content. Overlay scrollbars draw overtop of the scrolling content.

Note that we have talked in other issues about changing the scrolling content clip - so I think it would be more correct to just say that the thumb is composited above the track which is composited above the scrolling container (and scrolling contents if they are not clipped or if using overlay scrollbars).

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


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

Received on Tuesday, 21 January 2025 15:19:54 UTC