Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!-- This SVG file uses itself as an image. Currently, we don't paint
2 recursively-referenced images beyond the first level. When this testcase
3 is viewed directly, it gets treated as a document (not an image), so its
4 <image> element is painted. However, the <image>'s own *internal* <image>
5 element does *not* get painted. So we end up painting two blue circles:
6 one for the <circle> and one for the <image>'s <circle> (and no more). -->
7 <svg xmlns="http://www.w3.org/2000/svg"
8 xmlns:xlink="http://www.w3.org/1999/xlink"
9 width="100" height="100">
10 <circle cx="10" cy="10" r="10" fill="blue"/>
11 <image x="20" y="20" width="100" height="100"
12 xlink:href="#foo"/>
13 <!-- When used as a URL, #foo evaluates to ${my_url}#foo, which (when treated
14 as an image URL) just turns into ${my_url}. -->
15 </svg>