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

What is the purpose of BackgroundImage filter input in SVG 2? #910

Open
RazrFalcon opened this issue Apr 23, 2023 · 0 comments
Open

What is the purpose of BackgroundImage filter input in SVG 2? #910

RazrFalcon opened this issue Apr 23, 2023 · 0 comments

Comments

@RazrFalcon
Copy link

https://www.w3.org/TR/filter-effects-1/#attr-valuedef-in-backgroundimage

In SVG 1, BackgroundImage was used in tandem with enable-background to render part of SVG into a filter input buffer.
In SVG 2, there are no enable-background anymore (no one really supported it anyway) and the spec simply says:

This keyword represents the back drop defined by the current isolation group behind the filter region at the time that the filter element was invoked. See isolation property.

But the filter attribute always forces group isolation, meaning it the same as using SourceGraphic, no?

And browsers do not support it either. Chrome does handle BackgroundImage sometimes (probably simply fallbacks to SourceGraphic), but not BackgroundAlpha.

What is the difference between SourceGraphic and BackgroundImage in terms of SVG 2?

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

No branches or pull requests

1 participant