I have an SVG image with transparent background. I want to set a background color to it. I tried:
style="background-color: blue"
and
fill="blue"
and none of them works.
Is there any way to set a background color to such element?
Here is an example in the jsfiddle: https://jsfiddle.net/672ec2n1/15
update:
I found a workaround solution by adding a rectangle which has the same size and position as the image and set the fill attribute to it.