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
If SVG file uses ids for mask and/or for defs such ids may get collied because SVG files are inlined and ids inside SVGs are global for the whole HTML.
For example, we have an issue that the same icon first time is shown good:
Workarounds from these issues don't help us, unfortunately. So the only working solution was to edit the code of SVG file manually, so it doesn't use ids and masks.
We may still come across such issues in the future, as so far the solution may be applied only per SVG files that have such an issue. Probably, we can also ask designers to provide SVG files without masks if possible.
The text was updated successfully, but these errors were encountered:
maxceem
changed the title
Inlined SVG files got broken, empty
Inlined SVG files got broken (empty, blank)
Jan 29, 2020
This is actually a part of #3407 (comment).
I've logged this issue separately, so it would be easier to find it if we have similar issues in the future.
Follow up from #3407 (comment) issue number 2.
If SVG file uses ids for
mask
and/or fordefs
such ids may get collied because SVG files are inlined and ids inside SVGs are global for the whole HTML.For example, we have an issue that the same icon first time is shown good:
But the next times it's shown blank (broken):
Here are related issues found on the internet:
Workarounds from these issues don't help us, unfortunately. So the only working solution was to edit the code of SVG file manually, so it doesn't use ids and masks.
We may still come across such issues in the future, as so far the solution may be applied only per SVG files that have such an issue. Probably, we can also ask designers to provide SVG files without masks if possible.
The text was updated successfully, but these errors were encountered: