Re: [csswg-drafts] [css-color-4] Color modifications proposal: extending color functions

> One benefit of the optional argument syntax that is now lost is that it's also a color space conversion syntax. rgb(var(--mycolor)) clips to sRGB,

I don't think that should be true. The color functions allow out-of-gamut parameters; this is especially necessary since computed color values are always converted to `rgba()` format.  Clipping only happens to device limitations at used value time.

But that makes me thinking that in addition to a relative adjustment function, there should maybe be a `clamp()` function (or separate max/min functions) that can use the underlying value as starting point.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3187#issuecomment-430005271 using your GitHub account

Received on Monday, 15 October 2018 20:40:52 UTC