layout/reftests/svg/smil/anim-pathLength-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 "pathLength" attribute on the "path" element</title>
michael@0 6 <script xlink:href="smil-util.js" type="text/javascript"/>
michael@0 7 <path id="path_1" fill="none" d="M 0,50 h 500" pathLength="5000">
michael@0 8 <animate attributeName="pathLength"
michael@0 9 calcMode="linear"
michael@0 10 begin="0s" dur="2s"
michael@0 11 from="5000" to="95000"
michael@0 12 fill="freeze"/>
michael@0 13 </path>
michael@0 14 <path id="path_2" fill="none" d="M 0,100 h 500" pathLength="5000">
michael@0 15 <animate attributeName="pathLength"
michael@0 16 calcMode="linear"
michael@0 17 begin="0s" dur="1s"
michael@0 18 from="5000" to="50000"
michael@0 19 fill="freeze"/>
michael@0 20 </path>
michael@0 21
michael@0 22 <!-- test 50% completed animation -->
michael@0 23 <text fill="blue">
michael@0 24 <textPath xlink:href="#path_1" startOffset="2000">
michael@0 25 Some text
michael@0 26 </textPath>
michael@0 27 </text>
michael@0 28
michael@0 29 <!-- test 100% completed animation -->
michael@0 30 <text fill="blue">
michael@0 31 <textPath xlink:href="#path_2" startOffset="2000">
michael@0 32 Some text
michael@0 33 </textPath>
michael@0 34 </text>
michael@0 35 </svg>

mercurial