Fill SVG path element with a background-image

Is it possible to set a background-image for an SVG <path> element?

For instance, if I set the element class="wall", the CSS style .wall {fill: red;} works, but .wall{background-image: url(wall.jpg)} does not, neither .wall {background-color: red;}.

1 Answer
1

Leave a Comment