ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Silent failure when trying to render SVG image with widht/height in percentage

  • ما من ردود
  • 1 has this problem
  • 7 views
more options

Hi,

In the context of an app using Pixi.js to render markers on a map, we have noticed that Firefox is unable to load SVG images from a data URL, as soon as they have a width/height in percentage.

Switching to a px size fixes the problem.

But what bothers me the most, is that this fails seems to be silent, there is no way to catch the error and bubble it up to the developer. So the image just never loads in our code, which makes the issue extremely difficult to figure.

See more information, and a reproduction with Pixi.js there: https://github.com/pixijs/pixi.js/issues/7473

Hi, In the context of an app using Pixi.js to render markers on a map, we have noticed that Firefox is unable to load SVG images from a data URL, as soon as they have a width/height in percentage. Switching to a px size fixes the problem. But what bothers me the most, is that this fails seems to be silent, there is no way to catch the error and bubble it up to the developer. So the image just never loads in our code, which makes the issue extremely difficult to figure. See more information, and a reproduction with Pixi.js there: https://github.com/pixijs/pixi.js/issues/7473