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

[cssom] Add resolved value special case for background-image and similar? #9659

Open
andruud opened this issue Nov 30, 2023 · 3 comments
Open
Labels

Comments

@andruud
Copy link
Member

andruud commented Nov 30, 2023

As far as I can tell, the resolved value of background-image is defined by specs as the computed value. This means that e.g. currentcolor within gradients should not be resolved in the return value of getComputedStyle(e).backgroundImage, yet all browsers appear to do this anyway.

Should we change cssom and say that the resolved value for background-image is the used value? (May also be relevant for other properties, e.g. border-image). Or do we try to fix implementations instead? @emilio

@emilio
Copy link
Collaborator

emilio commented Nov 30, 2023

It's unclear we want the "used" value, what does that imply for the length of the lists etc? It's just "computed with colors resolved", right?

@andruud
Copy link
Member Author

andruud commented Nov 30, 2023

Yeah, I wasn't sure either. Do you think we should spec resolved="computed with colors resolved", then?

@emilio
Copy link
Collaborator

emilio commented Nov 30, 2023

I think that's fine, yeah I think we don't expose currentColor in the computed style anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants