Skip to main content
Gavin_Atkinson
Jan 20, 2023 9:19 PM UTC
Solved

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

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

    This topic has been closed for replies.
    Lauren_Budorick
    Figmate
    Dec 12, 2023 6:13 PM UTC

    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.)

    4 replies

    gavinatkinson
    Jul 12, 2023 5:55 PM UTC

    Just wanted to bump this!

    Gavin_Atkinson
    Dec 8, 2023 7:42 PM UTC

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

    Lauren_Budorick
    Figmate
    Figmate
    Dec 12, 2023 6:13 PM UTC

    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
    Dec 12, 2023 6:34 PM UTC

    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!