Re: [csswg-drafts] [css-color-6] add color functions for some (or all) compositing/blending operations (#8431)

Some thoughts:

- [blending](https://drafts.fxtf.org/compositing-1/#blending) depends on the notion of foreground and background/backdrop, which `color-mix()` doesn't have
- blending applies to arbitrary image inputs, not just solid colors
- Porter-Duff [compositing](https://drafts.fxtf.org/compositing-1/#advancedcompositing) relies on foreground/background distinction, which `color-mix()` does not have.

These could be added, but currently `color-mix(in space, color1, color2)` is exactly the same as `color-mix(in space, color2, color1)` and adding a foreground/background distinction we would lose that property.

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


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

Received on Sunday, 21 January 2024 14:03:45 UTC