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

Thank you. This makes it much clearer now. You're right that what we want here is "lighter" composite operator with "normal" blend mode. And there is currently no way to change the composite operator in CSS.

Would it be reasonable to include composite operators in mix-blend-mode and follow a pattern similar to globalCompositeOperation. The latter lets you specify a blend mode (in which we default to source-over compositing) or composite operator (in which case we default to normal blending) : https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/graphics_types.cc;l=56;drc=d7044ac79851029fa1698731d9ce5c251a5939be

We can have mix-blend-mode provide the same capability as globalCompositeOperation in CSS. It's unclear why a developer shouldn't be able to specify any combination of the 2 but the syntax could be extended to permit that for both mix-blend-mode and globalCompositeOperation going forward.

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


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

Received on Tuesday, 14 December 2021 00:13:31 UTC