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

[filter-effects] Clarify mapping of Cs and Cb to in and in2 in feBlend #165

Closed
BigBadaboom opened this issue May 17, 2017 · 2 comments
Closed

Comments

@BigBadaboom
Copy link

BigBadaboom commented May 17, 2017

https://www.w3.org/TR/filter-effects/#element-attrdef-feblend-mode

The definition for the mode attribute of <feBlend> states:

One of the blend modes defined by “Compositing and Blending Level 1” [COMPOSITING-1]

However that specification defines the blend functions in terms of source (Cs) and backdrop (Cb) parameters. We should specify how in and in2 map to those two values.

From testing (Chrome and FF) it appears that Cs maps to in, and Cb maps to in2.

@AmeliaBR
Copy link

That's a very good point. I can never remember whether in or in2 should be "on top". (I always think the second input should go on top of the first).

PS, I checked and SVG 1.1 wasn't much clearer: the formulas use image A (top for normal blending) and image B (background), without explicitly saying which one is in versus in2. But that is presumably where the "second image is the background" interpretation comes from.

dirkschulze added a commit that referenced this issue Jun 11, 2017
…destination/backdrop in blending anc compositing #165
@dirkschulze
Copy link
Contributor

I added a sentence for feBlend and feComposite that shall make it more obvious which input maps to source or destination/backdrop.

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