css-houdini-drafts
css-houdini-drafts copied to clipboard
[css-typed-om-1] `currentColor` is not the only non-absolute color
In 6.7. Serialization from CSSOM Value, several times we read:
If the value is the
currentcolorkeyword, 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:
- currentColor (which depends on the value of the color property)
- a
<system-color>(which depends on the color mode)<light-dark()>(which depends on the color mode)<device-cmyk()>(which has no colorimetric basis)
Nor are any of those values used inside <color-mix()> or in relative color syntax.
@tabatkins would you like a PR for this or should I just make the edit directly?
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
@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).