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-typed-om-1] currentColor is not the only non-absolute color #1125

Open
svgeesus opened this issue Mar 21, 2024 · 3 comments
Open

[css-typed-om-1] currentColor is not the only non-absolute color #1125

svgeesus opened this issue Mar 21, 2024 · 3 comments

Comments

@svgeesus
Copy link
Contributor

In 6.7. Serialization from CSSOM Value, several times we read:

If the value is the currentcolor keyword, return "currentcolor".
Otherwise, return the result of serializing the <color> value.

That isn't the only case for non-absolute colors. It would be better perhaps to reference CSS Color 5 absolute color whose more comprehensive definition is:

An absolute color is a <color> whose computed value has an absolute, colorimetric interpretation. This means that the value is not:

Nor are any of those values used inside <color-mix()> or in relative color syntax.

@svgeesus
Copy link
Contributor Author

svgeesus commented Apr 8, 2024

@tabatkins would you like a PR for this or should I just make the edit directly?

@skyfighteer
Copy link

skyfighteer commented Sep 11, 2024

I believe this might be the reason why the "light-dark" value is not supported here. (The universal syntax "*" is a good workaround, feel free to try it.)

https://codepen.io/skyfighteer/pen/PorLyOW

@svgeesus
Copy link
Contributor Author

svgeesus commented Sep 16, 2024

@tabatkins I also see

Otherwise, return the result of serializing the <color> value.

Presumably the serialization of the computed value is meant here (but it would be good to have that confirmed before I make a PR).

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

No branches or pull requests

2 participants