Inside a html page, I have this simple .svg code:
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 841.9 1190.6" xml:space="preserve">
<rect id="image-test" x="0" y="0" width="250" height="250" fill="none">
<image width="250px" height="250px" href="https://pbs.twimg.com/profile_images/1450222519/logosf_positif_03_icon.png" />
</rect></svg>
Even if I use xlink:href
for the <image />
node, the image is still not displayed. The url to image is valid and the image exists: https://pbs.twimg.com/profile_images/1450222519/logosf_positif_03_icon.png
. But the image seems to be displayed outside the <rect />
node, inside the root <svg />
. What is wrong with my code?