- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Feb 2023 18:28:21 +0000
- To: public-css-archive@w3.org
dbaron has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color-6] add color functions for some (or all) compositing/blending operations == In https://github.com/w3c/csswg-drafts/issues/7358#issuecomment-1410668912 @LeaVerou wrote: > Whatever default we pick, there will be cases where it's wrong, so it would be nice to offer a way out. How can the author select what the background is composited on? What if we add a color-over() function to do alpha compositing? Pretty sure there are other use cases for it too, and it should be relatively easy to implement. In today's telecon, for the same reason (and I think not having read Lea's comment) I suggested something similar: > `<dbaron>` Seems like what Adam's suggesting could also be done with a composite(A over B) color function or similar rather than additional syntax for the contrast function. In other words, what I was thinking was roughly a `composite(` [`<color>`](https://drafts.csswg.org/css-color-4/#typedef-color) [`<composite-mode>`](https://drafts.fxtf.org/compositing-1/#compositemode) [`<color>`](https://drafts.csswg.org/css-color-4/#typedef-color) `)` function, which has a slightly larger feature space. (Except I didn't want `<composite-mode>` exactly, because I'd rather not have the `source-` and `dest-` prefixes in this case.) But it's possible we might also want to allow choosing the [`<blend-mode>`](https://drafts.fxtf.org/compositing-1/#ltblendmodegt). Opening this issue because it seems like this side discussion probably deserves its own issue, and we can decide whether or not we actually want such a feature. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8431 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 February 2023 18:28:23 UTC