Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • Нет ответов
  • 1 имеет эту проблему
  • 8 просмотров
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