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

Coordinate references algorithm #10

Closed svgeesus closed 1 year ago

svgeesus commented 3 years ago

Should this algorithm be exposed to authors via a static method? See APIs should allow introspection

LeaVerou commented 1 year ago

Which part of the spec is this referencing?

svgeesus commented 1 year ago

The reference ranges for percentages, in other words how you know that lab(50% 40% 40%) is lab(50 50 50) (because L 100% is 100 and a or b 100% is +125 while -100% is -125).

LeaVerou commented 1 year ago

This is not a part of this API really, since coordinates are just numeric. These ranges should be part of the reference range for these coordinates.

svgeesus commented 1 year ago

In that case, this can be closed