Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: LayoutTests/svg/animations/mozilla/animateMotion-mpath-pathLength-1.svg

Issue 179293004: Drive SVG Animations via requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="loaded()"> 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="loaded()">
2 <defs> 2 <defs>
3 <path id="path" pathLength="100" d="M-200,0 h400" /> 3 <path id="path" pathLength="100" d="M-200,0 h400" />
4 </defs> 4 </defs>
5 <rect width="100%" height="100%" fill="lime"/> 5 <rect width="100%" height="100%" fill="lime"/>
6 6
7 <!-- calcMode="linear" --> 7 <!-- calcMode="linear" -->
8 <rect x="10" y="10" width="100" height="100" fill="red"/> 8 <rect x="10" y="10" width="100" height="100" fill="red"/>
9 <rect x="10" y="10" width="100" height="100" fill="lime"> 9 <rect x="10" y="10" width="100" height="100" fill="lime">
10 <animateMotion dur="1s" keyPoints="0;1" keyTimes="0;1" calcMode="linear"> 10 <animateMotion dur="1s" keyPoints="0;1" keyTimes="0;1" calcMode="linear">
11 <mpath xlink:href="#path" /> 11 <mpath xlink:href="#path" />
12 </animateMotion> 12 </animateMotion>
13 </rect> 13 </rect>
14 14
15 <!-- calcMode="paced" --> 15 <!-- calcMode="paced" -->
16 <rect x="10" y="110" width="100" height="100" fill="red"/> 16 <rect x="10" y="110" width="100" height="100" fill="red"/>
17 <rect x="10" y="110" width="100" height="100" fill="lime"> 17 <rect x="10" y="110" width="100" height="100" fill="lime">
18 <animateMotion dur="1s"> 18 <animateMotion dur="1s">
19 <mpath xlink:href="#path" /> 19 <mpath xlink:href="#path" />
20 </animateMotion> 20 </animateMotion>
21 </rect> 21 </rect>
22 22
23 <script> 23 <script>
24 if (window.testRunner) 24 if (window.testRunner)
25 testRunner.waitUntilDone(); 25 testRunner.waitUntilDone();
26 26
27 function loaded() { 27 function loaded() {
28 document.documentElement.pauseAnimations();
28 document.documentElement.setCurrentTime(0.5); 29 document.documentElement.setCurrentTime(0.5);
29 if (window.testRunner) 30 if (window.testRunner)
30 testRunner.notifyDone(); 31 testRunner.notifyDone();
31 } 32 }
32 </script> 33 </script>
33 </svg> 34 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698