E
E
explicit12022-02-11 19:12:27
css
explicit1, 2022-02-11 19:12:27

Why does svg have a black background?

Hello. Combined icons into one svg sprite, through symbol, into html I insert through svg > use. In chrome, everything is ok, but in firefox, some elements have a black background. What could be the reason for this and how to fix it?

Normal display of icons
62068a9e46a12293845854.png

Icons in firefox
62068ad323afc973293585.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2022-02-11
@explicit1

Apparently, the elements do not have a background property, and by default Chrome assumes transparent, and Fox - black.
Fortunately, SVG is in such a format that you can open it in notepad and look at it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question