Re: [fxtf-drafts] Add plus-lighter to mix-blend-mode and background-blend-mode (#444)

> Are you looking into making it apply to CSS or only canvas?

The purpose of this PR is to allow developers to make an element composite using `lighter`. Among other things, it allows developers to cross-fade elements https://jakearchibald.com/2021/dom-cross-fade/

`lighter` is already supported in canvas, so the aim here is to add it to CSS.

> The plan (from 8 years ago?) was to make another css property for compositing but that never happened.
> I was never sure about the compositing part because it feels too low level.

Yeah, some combinations of blend & composite don't seem to make much sense.

> Is Chrome looking into implementing cross-fade in css?

Not `cross-fade()` (we already support that as `-webkit-cross-fade()`), but the ability to cross-fade two DOM elements.

I've updated the PR to use 'lighter' rather than 'plus-lighter'.

-- 
GitHub Notification of comment by jakearchibald
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/pull/444#issuecomment-984826049 using your GitHub account


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

Received on Thursday, 2 December 2021 17:10:04 UTC