The fill CSS property only applies to
SVG
elements, but you’re
trying to apply it to HTML<img>
element
This is from Styling SVG with CSS in the containing HTML - Stack Overflow
So you can just give it a fill: green
and change the black to green for an <img>
tag. There is a solution on the Stack Overflow question, but it’s not straightforward as plain vanilla CSS.