Accordingly, answer "for security reasons, images should be offline files." That is, when you include an SVG file using the img tag, it cannot refer to any external style sheets.
I think I ran into the same problem when trying to include SVG as background images using CSS. SVGs link to other SVG files and display them perfectly when viewed directly in Firefox, but do not display related content when included as CSS background image.
What are these “security considerations” and where can I learn more about them?
html css svg
FixMaker Sep 26 2018-12-12T00: 00Z
source share