layout/reftests/svg/smil/anim-gradient-href-01.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" 
     6      xmlns:xlink="http://www.w3.org/1999/xlink"
     7      class="reftest-wait"
     8      onload="setTimeAndSnapshot(0.25, true)">
     9   <title>Test animation of the "xlink:href" &lt;string&gt; attribute on the "linearGradient" element</title>
    10   <script xlink:href="smil-util.js" type="text/javascript"/>
    12   <defs>
    13     <linearGradient id="grad1a" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    14       <stop id="red" stop-color="red" offset="0"/>
    15     </linearGradient>
    16     <linearGradient id="grad1b" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    17       <stop id="lime" stop-color="lime" offset="0"/>
    18     </linearGradient>
    19     <linearGradient id="grad2" xlink:href="#grad1a">
    20       <animate attributeName="xlink:href"
    21            begin="0s" dur="0.5s"
    22            from="#grad1a" to="#grad1b"
    23            fill="freeze"/>
    24     </linearGradient>
    25   </defs>
    26   <rect width="100%" height="100%" fill="lime"/>
    27   <rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
    29 </svg>

mercurial