SVG : attribute 'width' and 'height' can't be used on <use>
There's an example of a SVG file :
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<svg id="a">
<rect width="100%" height="100%" fill="red"/>
</svg>
</defs>
<rect fill="none" stroke="green" stroke-width="5" width="100%" height="100%"/>
<use xlink:href="#a" x="45%" y="45%" width="10%" height="10%"/>
</svg>
According to the [W3C documentation] (https://www.w3.org/TR/SVG11/struct.html#UseElement): "the 'use' element has optional attributes 'x', 'y', 'width' and 'height' which are used to map the graphical content of the referenced element to a rectangular region in the current coordinate system."
So the expected result is the following (given by firefox
and inkscape
):
But with eog
I get this :
It seems that x
and y
attributes are considered but not width
and heightt