Im having trouble changing the color of a svg that is loaded usign "content: url("svg-path")". The svg is using currentcolor for fill, and is changing color fine if the svg is loaded directly in the html. The two Svg images should be the same color.
The Svg in question
<svg
fill="currentcolor"
viewBox="0 0 200 200"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs/>
<g
fill="currentcolor">
<circle
id="path846"
cx="105.50797"
cy="128.38446"
r="45.161354" />
</g>
</svg>
I have the current test setup to display my issue
.container {
width: 500px;
height: 500px;
color: #6592d5;
}
.test::before {
content: url("Path to svg file");
}
<div class="container">
<svg
fill="currentcolor"
viewBox="0 0 200 200"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs/>
<g
fill="currentcolor">
<circle
id="path846"
cx="105.50797"
cy="128.38446"
r="45.161354" />
</g>
</svg>
<span class="test">
</span>
</div>