Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-scrollbars] What is "the background" #10524

Open
frivoal opened this issue Jul 4, 2024 · 0 comments
Open

[css-scrollbars] What is "the background" #10524

frivoal opened this issue Jul 4, 2024 · 0 comments
Labels
css-scrollbars-1 Current Work

Comments

@frivoal
Copy link
Collaborator

frivoal commented Jul 4, 2024

In #9853, we resolved that:

transparent colors in the thumb are transparent towards the track, and transparent colors in the track are transparent towards the background […]

But what exactly is "the background"? As far as I can tell from testing, Firefox and Chrome do agree: this is the composited background of all elements that end up behind, including images, gradients… and if the backgrounds themselves are transparent, you include further backgrounds behind. It does not include the content of the scrolling element, but it does include the content of ancestors / things behind:

http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=12876

Screenshot 2024-07-04 at 10 20 37

Since implementations agree, I see no strong reason to propose anything else, but is there a pre-existing term to refer to this kind of background?

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.

@frivoal frivoal added the css-scrollbars-1 Current Work label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-scrollbars-1 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant