Fill SVG path element with a background-image

Is it possible to set a background-image for an SVG 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;}.

157
задан Simon East 12 October 2017 в 22:01
поделиться