layout/reftests/svg/smil/anim-offset-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.)

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg"
michael@0 2 xmlns:xlink="http://www.w3.org/1999/xlink"
michael@0 3 class="reftest-wait"
michael@0 4 onload="setTimeAndSnapshot(1, true)">
michael@0 5 <title>Test animation of the "offset" attribute on the "stop" element</title>
michael@0 6 <script xlink:href="smil-util.js" type="text/javascript"/>
michael@0 7 <linearGradient id="gradient_1">
michael@0 8 <stop stop-color="lime" offset="0"/>
michael@0 9 <stop stop-color="lime" offset="0">
michael@0 10 <animate attributeName="offset" attributeType="XML"
michael@0 11 calcMode="linear"
michael@0 12 begin="0s" dur="2s"
michael@0 13 to="100%"
michael@0 14 fill="freeze"/>
michael@0 15 </stop>
michael@0 16 <stop stop-color="red" offset="0">
michael@0 17 <animate attributeName="offset" attributeType="XML"
michael@0 18 calcMode="linear"
michael@0 19 begin="0s" dur="2s"
michael@0 20 to="1"
michael@0 21 fill="freeze"/>
michael@0 22 </stop>
michael@0 23 <stop stop-color="red" offset="1"/>
michael@0 24 </linearGradient>
michael@0 25 <linearGradient id="gradient_2">
michael@0 26 <stop stop-color="lime" offset="0"/>
michael@0 27 <stop stop-color="lime" offset="0">
michael@0 28 <animate attributeName="offset" attributeType="XML"
michael@0 29 calcMode="linear"
michael@0 30 begin="0s" dur="1s"
michael@0 31 to="100%"
michael@0 32 fill="freeze"/>
michael@0 33 </stop>
michael@0 34 <stop stop-color="red" offset="0">
michael@0 35 <animate attributeName="offset" attributeType="XML"
michael@0 36 calcMode="linear"
michael@0 37 begin="0s" dur="1s"
michael@0 38 to="1"
michael@0 39 fill="freeze"/>
michael@0 40 </stop>
michael@0 41 <stop stop-color="red" offset="1"/>
michael@0 42 </linearGradient>
michael@0 43 <rect width="100%" height="100%" fill="lime"/>
michael@0 44 <rect width="200" height="200" fill="red"/>
michael@0 45
michael@0 46 <!-- test 50% completed animation -->
michael@0 47 <rect width="200" height="100" fill="url(#gradient_1)"/>
michael@0 48 <rect x="100" width="100" height="100" fill="lime"/>
michael@0 49
michael@0 50 <!-- test 100% completed animation -->
michael@0 51 <rect y="100" width="200" height="100" fill="url(#gradient_2)"/>
michael@0 52 </svg>

mercurial