The SVG <image>
element does not accept fill
as an attribute. So it would not accept the CSS fill
equivalent.
W3C SVG <image>
element: http://www.w3.org/TR/SVG11/struct.html#ImageElement
Attribute definitions for the SVG <image>
element :
- x = The x-axis coordinate of one corner of the rectangular region into which the referenced document is placed.
If the attribute is not specified, the effect is as if a value of '0' were specified.
Animatable: yes.
- y = The y-axis coordinate of one corner of the rectangular region into which the referenced document is placed.
If the attribute is not specified, the effect is as if a value of '0' were specified.
Animatable: yes.
- width = The width of the rectangular region into which the referenced document is placed.
A negative value is an error (see Error processing). A value of zero disables rendering of the element.
Animatable: yes.
- height = The height of the rectangular region into which the referenced document is placed.
A negative value is an error (see Error processing). A value of zero disables rendering of the element.
Animatable: yes.
- xlink:href = A IRI reference.
Animatable: yes.
If it works with the SVG <use>
element than use it!