Re: [css-houdini-drafts] [css-typed-om] CSSColor should use indexed properties, not .channels (#1037)

Yup, that's what I mean. `CSSColor` would be iterable, yes. (Not `CSSColorValue`, the superclass.)

I was just wondering, tho - you seemed to indicate in the linked thread that it's valuable to be able to obtain the channels of any color as an array. Is this something we should support? It's pretty easy; I'd just add indexed properties to all the color subclasses, and then you could do `[...color]` to get the channels out.

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


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

Received on Friday, 14 May 2021 15:02:38 UTC