Re: [csswg-drafts] [css-images-4] Consider allowing gradients to include a color space for interpolation to take place in (#5833)

I'm not quite sure I follow what you're proposing - dropping `auto` or `match`? So presumably _all_ interpolation would default to sRGB unless the author explicitly specified (for example) lch or lab?

I suspect we agree that sRGB has to remain the default for `sRGB` and `HSL`. But I don't believe `sRGB` should be the default for `LCH` or `device-cmyk` color. Two reasons.

1. Colors are all eventually converted to the display's RGB gamut on screen, but in the print world it's important that the colors remain in the space they were specified in. Many variants of PDF completely disallow RGB in the document.
2. Interpolating between two colors that are out-of-gamut in sRGB would lead to nonsensical results.

For me, the _least_ confusing default choice is "the same colorspace as the input colors". That's `match`. But we can't do that for HSL for compat reasons, hence `auto`.

This all covered in https://github.com/w3c/csswg-drafts/issues/4647 - do read it through if you haven't already. I should note I also didn't see the value in LCH originally, but was won over in the discussion in that issue.


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 26 February 2021 17:28:41 UTC