Re: [csswg-drafts] [css-color] Is relative color syntax ready to ship? (#7978)

This needs explicit spec text for resolving the RCS value when `currentColor` is the origin , saying that the RCS serializes as specified so that child elements are handled correctly. There is already similar text in [Resolving `color-mix()` Values](https://drafts.csswg.org/css-color-5/#resolving-mix)for resolving `color-mix()` so as noted by we should re-use that:

> If all [<color>](https://drafts.csswg.org/css-color-4/#typedef-color) parameters resolve to the corresponding colors in their respective color spaces, the computed value is the mixed color, in the specified mixing color space, resolved according to [CSS Color 4 § 14 Resolving <color> Values](https://drafts.csswg.org/css-color-4/#resolving-color-values). Otherwise (if [currentColor](https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor) was used in the function), the computed value is the [color-mix()](https://drafts.csswg.org/css-color-5/#funcdef-color-mix) function with each <color> parameter resolved according to [CSS Color 4 § 14 Resolving <color> Values](https://drafts.csswg.org/css-color-4/#resolving-color-values), thus preserving inheritance into child elements.

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


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

Received on Wednesday, 11 January 2023 16:24:50 UTC