Re: [css-houdini-drafts] CSSColorValue.colorSpace restricts naming of future color functions and color() keywords (#1070)

> For color() functions, the corresponding string is the color space keyword; for the other color functions, the corresponding string is the function name.

This follows naturally from the design decision in Typed OM that retaining and exposing the syntax is the most important thing (thus, lots of different ways to specify an sRGB color), while in the Color object exposing the values and the colorspace is the key thing. And thus, conversion to sRGB in the Color object does not need to have options to pick which of the many syntaxes you get.

I agree with Lea that handling color conversions based on fully resolved values in the `Color` class makes more sense.

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


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

Received on Wednesday, 20 April 2022 14:35:32 UTC