Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / animations / mozilla / animateMotion-from-to-1.svg
blob6c4d2ddfecab30a33586142075fd6c5c0c3f7c71
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="loaded()">
2 <!-- Big green background to match lime.svg -->
3 <rect width="100%" height="100%" fill="lime"/>
4 <!-- Red "workspace" (should be covered up, if tests pass) -->
5 <rect x="100" y="100" width="100" height="100" fill="red"/>
7 <!-- FIRST ROW -->
8 <!-- Check that 'from' gets applied at begin time -->
9 <rect fill="lime" x="0" y="0" width="50" height="50">
10 <animateMotion from="100, 100" to="500, 500" begin="1" dur="1"/>
11 </rect>
13 <!-- Check that 'to' gets hit at end time -->
14 <rect fill="lime" x="0" y="0" width="50" height="50">
15 <animateMotion from="200,200" to="150,100" begin="0" dur="1" fill="freeze"/>
16 </rect>
18 <!-- SECOND ROW -->
19 <!-- Check that animation effects are removed after end time
20 (note that fill="remove" is default; just specifying it for clarity -->
21 <rect fill="lime" x="100" y="150" width="50" height="50">
22 <animateMotion from="500,500" to="600,600" begin="0" dur="1" fill="remove"/>
23 </rect>
24 <rect fill="purple" x="-25" y="-25" width="25" height="25">
25 <!-- With the purple rect's x/y offsets, this animateMotion path moves us
26 around the 2nd row, 1st col -->
27 <animateMotion from="125,175" to="150,175" begin="0" dur="1" fill="remove"/>
28 </rect>
30 <!-- Check interpolation halfway through animation -->
31 <rect fill="lime" width="50" height="50">
32 <animateMotion from="200,100" to="100,200" begin="0.5" dur="1"/>
33 </rect>
35 <script>
36 if (window.testRunner)
37 testRunner.waitUntilDone();
39 function loaded() {
40 document.documentElement.setCurrentTime(1);
41 document.documentElement.pauseAnimations();
43 if (window.testRunner)
44 testRunner.notifyDone();
46 </script>
47 </svg>