I use an SVG like this way:
<image x="0" y="0" width="40" height="40" href="/resource.svg"></image>
This is the resource.svg:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="217px" height="131px" viewBox="-0.5 -0.5 217 131"><defs/><g><ellipse cx="108" cy="65" rx="108" ry="65" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><ellipse cx="108" cy="65" rx="40" ry="40" fill="#a0522d" stroke="#6d1f00" pointer-events="all"/></g></svg>
Now, I should dynamicaly change the color of the svg. For this I thought about whether it would be possible to load the SVG completely (inline?) instead of as a link and then replace the values for fill and stroke (with string-replace). If I use it inline, is it possibly also possible to achieve this via CSS?
Can someone help me whether that would be possible and if so, in which direction I have to research further?