layout/reftests/svg/as-image/svg-image-recursive-1b.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

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>

mercurial