You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a website that uses a base tag, and I'm using Lottie to animate SVGs that have linear gradients. These linear gradients are defined in the <defs> tag of the SVG and used in the SVG with fill=url(#linear_gradient_id).
In Safari, the animated SVGs created by Lottie come out black because the base tag is causing the url() to fetch the wrong path. I found the function lottie.setLocationHref(locationHref), which properly sets the location for the url() for mask elements in the SVG; however, the location is not set for the url()s used to define fills. Would it be possible to add the locationHref to the fill urls here and here in the SVGGradientFillStyleData file?
Browser: Safari v12 on MacOS High Sierra.
I have a website that uses a base tag, and I'm using Lottie to animate SVGs that have linear gradients. These linear gradients are defined in the
<defs>
tag of the SVG and used in the SVG withfill=url(#linear_gradient_id)
.In Safari, the animated SVGs created by Lottie come out black because the base tag is causing the url() to fetch the wrong path. I found the function lottie.setLocationHref(locationHref), which properly sets the location for the url() for mask elements in the SVG; however, the location is not set for the url()s used to define fills. Would it be possible to add the locationHref to the fill urls here and here in the SVGGradientFillStyleData file?
This may be an extension of this issue: airbnb/lottie-web#360
The text was updated successfully, but these errors were encountered: