Remplir SVG élément de chemin avec un background-image

Est-il possible de définir un background-image pour un SVG <path> élément?

Par exemple, si j'ai mis l'élément class="wall", le style CSS .wall {fill: red;} fonctionne, mais .wall{background-image: url(wall.jpg)} n'est pas, ni .wall {background-color: red;}.

  • Montrant comment définir l'image d'arrière-plan pour le SVG texte, éventuellement par caractère: stackoverflow.com/a/10853878/405017
  • pour ceux qui recherchent un peu plus profond d'informations, consultez cet article lien
InformationsquelleAutor jbochi | 2010-09-25