Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compositing-1] Lighter compositing operator as a blend mode #181

Open
bugnano opened this issue May 30, 2017 · 2 comments
Open

[compositing-1] Lighter compositing operator as a blend mode #181

bugnano opened this issue May 30, 2017 · 2 comments

Comments

@bugnano
Copy link

bugnano commented May 30, 2017

On the https://drafts.fxtf.org/compositing-1/ document, the mix-blend-mode and background-blend-mode CSS properties support only blend modes and not Porter Duff compositing operations, and that's perfectly OK.

What amazes me is that there is a lack of a simple additive operation as far as blend modes are concerned. Sure, there is the 'lighter' Porter Duff compositing operation that does exactly that. Too bad that, being a composite operation and not a blend mode, it is not possible to use that operation in CSS mix-blend-mode and background-blend-mode.

My suggestion would be to either treat the 'lighter' function as a blend mode, or add the equivalent operation to the blend modes, with a different name.

One could argue that in doing so, there is a redundancy regarding the add operation, but as far as redundancies are concerned, so is for example the opacity filter in regard to the opacity CSS property, that both do the exact same thing, but in different contexts.

@jakearchibald
Copy link
Contributor

I think this can be closed now that plus-lighter has landed

@jakearchibald
Copy link
Contributor

#444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants