Skip to main content
Solved

What does the "backgroundImageFix" element in exported filter effects do?

  • January 20, 2023
  • 4 replies
  • 524 views

Gavin_Atkinson

What it says on the tin. Been curious about why this is injected into SVG exports.

Best answer by Lauren_Budorick

Hey Gavin!

Some of the things we do in our SVG exporter are meant to address discrepancies between different SVG renderers. Try opening this Codepen (where I exported a drop shadow from Figma and then commented out the BackgroundImageFix + blend) in both Chrome + Firefox (works fine) and then in Safari (where, at the time of this writing, that node isn’t drawn at all). (A comment in the Figma codebase implies that when this was first written 6 years ago, Firefox also had the same bug.)

View original
This topic has been closed for replies.

4 replies

gavinatkinson

Just wanted to bump this!


Gavin_Atkinson

I am once again asking for a genius on the Figma team to provide insight to me, a lowly user.


Lauren_Budorick
Figmate

Hey Gavin!

Some of the things we do in our SVG exporter are meant to address discrepancies between different SVG renderers. Try opening this Codepen (where I exported a drop shadow from Figma and then commented out the BackgroundImageFix + blend) in both Chrome + Firefox (works fine) and then in Safari (where, at the time of this writing, that node isn’t drawn at all). (A comment in the Figma codebase implies that when this was first written 6 years ago, Firefox also had the same bug.)


Gavin_Atkinson

Hey Lauren!

Thank you so much for your message and the example - sad that svg has so much cross-browser inconsistency in 2023 but here we are. Also, I’m a huge fan of the import upgrades you and your team made last year!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings