Re: [css-houdini-drafts] [css-typed-om] Move ".colorspace" to the color superclass, readonly (#1036)

If we have this, then it also gives us an identifier we can use to make the `toX()` function generic, rather than having specialized names. That is, we can write `.to("rgb")` to get a `CSSRGB` object, or `to("rec2020")` to get a `CSSColor` object set to the rec2020 color space.

This would solve another problem Lea pointed out in the comment linked above, *and* would make it more consistent with the `.to()` function in CSSNumericValue, which is a nice bonus.

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


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

Received on Thursday, 13 May 2021 15:31:27 UTC