Repository navigation
Description
Description
SVG filters should allow us to a achieve a lot of effects that otherwise involve content duplication or using external images or JS (canvas, whether 2D or WebGL). That is, if they worked properly. This is an area of the web that has been long neglected. There are lots of bugs, some of them over a decade and a half old. A lot of things don't work properly in one browser or another or they're slow or they don't work at all.
(screenshots below link to live demos)
Bringing up two other stroked versions of a link's text on :hover/ :focus. Without going the SVG filter route, this would involve creating multiple copies of the text inside pseudos. With the SVG filter, I use a displacement map created and animated from the CSS - this fails in Firefox (bug 🪲 1883933).
This is a problem whenever I want to modify the displacement map via CSS (which allows for a lot of cool effects) because I need to extract it from the SourceGraphic.
These fashion poster effects where the text is filled/ outlined based on whether it intersects a contrasting garment or not all fail in Safari due to weird tiling issues (bug 🪲 266295). These are all made with a single .jpg image and don't require text duplication. It's just that the garments in question contrast strongly with the rest of the image (that is, their RGB channels do), so that lets me extract them as a sort of alpha mask via feColorMatrix.
Sometimes the Safari tiling issues are more subtle like in the case of this demo (or this one), but they're still there.
Another text :hover effect fails in both Firefox and Safari due to the previously mentioned bugs.
Same happens with this (no text duplication) letters opening on :hover effect - it's broken in Safari due to tiling issues and in Firefox due to the fact that displacement maps extracted from the SourceGraphic (so I can create and modify them via CSS) don't work.
A very simple marquee fails in Safari because tiling is just broken (see also bug 🪲 270567) and sometimes in Firefox as well (bug 🪲 1917481).
Basically, anything that involves feTile is broken in Safari.
This bubble text effect on scroll is broken in Safari due to tiling and in Firefox due to the displacement issue.
Same goes for this tiled and distorted text demo.
Creating a textured 3D heading using the techniques from this decade old Smashing Magazine article fails in Safari due to the same tiling issues and due to the fact that it apparently discards the whole filter if it exceeds a certain number of primitives.
Textured text in general seems to be hitting that primitive limit quite often.
Chrome also does this strange thing on wide gamut displays where it finds something nonzero on the red or blue channel in rgb(0%, 100%, 0%). Filed bug 🪲 373410239 for this.
This means a lot of what uses feColorMatrix doesn't look quite right in Chrome on wide gamut displays. For example, we see this:
instead of the correct result:
Or we see this:
instead of this:
There are already cool things we can do with SVG (that would otherwise involve content duplication/ extra elements/ using external images/ canvas or that don't have reliable solutions without weird hacks otherwise) working cross-browser (or at least what doesn't work properly cross-browser isn't related to SVG).
Specification
Filter Effects Module Level 1
Additional Signals
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone




















Activity
rol4nd909 commentedon Oct 3, 2024
Yes please Interop give SVG some deserved love
mirnovov commentedon Oct 9, 2024
Also SVG filters in data URIs and external files don't work in Safari:
https://bugs.webkit.org/show_bug.cgi?id=127102
https://bugs.webkit.org/show_bug.cgi?id=104169
gsnedders commentedon Oct 15, 2024
Is this just as broad as https://wpt.fyi/results/css/filter-effects?label=master&label=experimental&aligned?
ydaniv commentedon Oct 15, 2024
This has some coverage of SVG filters, but it looks like it's mostly for CSS filters.
That's part of the problem with SVG 1.1 stuff, the tests aren't really there.
Here you can find the old tests: https://github.com/web-platform-tests/wpt/tree/master/svg/import
And the old archive: https://www.w3.org/Graphics/SVG/Test/20110816/
wpt-interop commentedon Feb 13, 2025
Thank you for proposing SVG filters for inclusion in Interop 2025.
We wanted to let you know that this proposal was not selected to be part of Interop this year.
On behalf of the entire Interop team, thank you for submitting this proposal for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.
For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2025.
Posted on behalf of the Interop team.
BearCooder commentedon Sep 22, 2025
Hey @thebabydino do you want to resubmit this proposal for this years interop? Submissions are open for two days still
thebabydino commentedon Sep 24, 2025
I did/ still do, but I've had a lot to do and now when I tried to at the last moment, I just couldn't figure out how to, so I guess I'm not. Pretty sure filters aren't a priority anyway.