Re: [csswg-drafts] [css-color][cssom] Serialization of specified <color> values (#1004)

> I'm asking about serialize a CSS value, which means element.style.color (CSSStyleDeclaration.getPropertyValue()), element.style.cssText, CSSRule.cssText, and more.

You're not getting the result of that directly, tho, you're getting the result of some API which invokes that algorithm, and those APIs feed values into that algorithm at various stages of the value pipeline. That's why I'm asking.

It looks like you're invoking the serialization of `el.style.color`, which returns specified values.

(Note that your logic that it must be a resolved value, since `hsl()` is canonicalized to `rgb()`, equally tells you it must be a serialized value, since `green` is preserved as `green`.)

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


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

Received on Wednesday, 9 March 2022 20:54:52 UTC