Why doesn't Firefox show my SVG icons, and how to do it?
问题 Context I am creating a static website using HTML, CSS and JS only (for learning purposes). I successfully implemented two themes. In order to change it, I added an SVG icon in a button element. The svg then changes according to the theme (moon or sun). Problem While everything runs well in a chromium browser, the SVGs don't show at all using Firefox, but the buttons work as expected. I suspect this comes from the way I use CSS variables to change the path of the SVG on hover . However, using