culori
culori copied to clipboard
`color()` syntax: map `<percentage>` to the component's range, where available.
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.