WICG / color-api

A proposal and draft spec for a Color object for the Web Platform, loosely influenced by the Color.js work. Heavily WIP, if you landed here randomly, please move along.
https://wicg.github.io/color-api/
Other
130 stars 3 forks source link

Global `Color` vs. `CSS.Color` #36

Closed mathiasbynens closed 4 months ago

mathiasbynens commented 1 year ago

Is Color meant to be a global or does it live on the CSS namespace?

LeaVerou commented 1 year ago

It's meant to be global, as it is not particularly tied to CSS syntax (there is CSS OM for that).

o-t-w commented 1 year ago

How does this relate to CSS Color stuff spec’ed for the Typed OM? https://drafts.css-houdini.org/css-typed-om-1/#reify-color

LeaVerou commented 1 year ago

How does this relate to CSS Color stuff spec’ed for the Typed OM? drafts.css-houdini.org/css-typed-om-1/#reify-color

The Color API represents color values, the Typed OM represents CSS syntax. We had a lot of good discussions on this in the meetings that led to deciding to work on this as a separate effort, rather than trying to do everything in Typed OM. @tabatkins any idea where the minutes might be?

tabatkins commented 1 year ago

Hmm, I'd have to go searching for them. Is there a need for me to do so? What you said is correct (TypedOM specifically represents CSS values, which both imposes some restrictions and loosens some requirements vs what a generic Color class needs to do).

svgeesus commented 4 months ago

any idea where the minutes might be?

Those minutes are here

svgeesus commented 4 months ago

@mathiasbynens @LeaVerou the question has been answered, close?

mathiasbynens commented 4 months ago

Thank you!