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

I'm not objecting to anything, I'm just a little cautious and would like more data. 

> Plenty of classes with indexed properties also have some methods or attributes; that's not unusual. I'm already doing it in a few places in Typed OM, in fact.

It would be useful if you could list some of these examples *outside* Typed OM.

> You already do this in Color.js, afaict, right? `color.hsl[0]` and `color.hsl.h` are both allowed.

Yes, though I'm not sure that would be a good idea for a native API, especially an extensible one, where new color spaces can be added.

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


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

Received on Saturday, 15 May 2021 12:51:10 UTC