culori icon indicating copy to clipboard operation
culori copied to clipboard

`color()` syntax: map `<percentage>` to the component's range, where available.

Open danburzo opened this issue 4 years ago • 0 comments

See:

  • https://github.com/w3c/csswg-drafts/issues/6741

Adjust the color() parser to map <percentage> against that component's range (which is usually, but not always, [0, 1]), where that range is available.

In each color space's definition, ranges should be marked as reference (as opposed to approximate), so that the parser can take them into account. If we don't have a range against which to map <percentage> values, treat them as omitted, and fall them back to 0.

danburzo avatar Oct 26 '21 08:10 danburzo