Re: [csswg-drafts] [css-values-4][css-color] Addition of `<color>` is way underspecified. (#8576)

I think colors can't add because they are simply points in color space, unlike filters (also in color) and transforms (in R^3) which are vectors. So trying to force them into same operations is bound to be awkward.

Perhaps we should reconsider the early attempt in #2875 to specify color-transform functions that only affect a specific property and not a complete filter on the entire element/background?

As for use-cases, I know authors are currently using SVG filters for these things (which only work with `filter`), but in this case having something like `translate()/rotate()/transfer()` on component-level could be really nice.
One example is duotone effect, which currently requires `grayscale(1)` + extra layer with `-blend-mode: mupltiply` + extra layer with `-blend-mode: screen`.

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


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

Received on Thursday, 1 June 2023 07:21:30 UTC