Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-12-t.svg
blob7f8b3c56fe19a8761713304e1c37946614fd33a1
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
3 <!--======================================================================-->
4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, Institut National de Recherche en =-->
6 <!--= Informatique et en Automatique, Keio University). All Rights =-->
7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <!-- =====================================================================-->
10 <!-- -->
11 <!-- animation-add-BE-06.svg -->
12 <!-- renamed for 1.1 suite to animate-elem-12-t.svg -->
13 <!-- -->
14 <!-- Test possible values for 'calcMode' -->
15 <!-- -->
16 <!-- Author : Jon Ferraiolo 11-Aug-2000 -->
17 <!-- Revised for 1.1 : Mathias Larsson Carlander Feb/12/2002 -->
18 <!-- Revised for SVGT/B : Mathias Larsson Carlander Jul/1/2002 -->
19 <!-- -->
20 <!-- History: -->
21 <!-- 11-Aug-2000, JF: Serial#1 created. -->
22 <!-- -->
23 <!-- =====================================================================-->
24 <!--======================================================================-->
25 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
26 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
27 <!--======================================================================-->
28 <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
29 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
30 <OperatorScript version="$Revision: 1.8 $" testname="animate-elem-12-t.svg">
31 <Paragraph>
32 Test possible values for 'calcMode="spline"'
33 </Paragraph>
34 <Paragraph>
35 Two animations have been defined. For each animation, ruler lines and text are provided to help show what the correct behavior is.
36 The black text and ruler lines help show the sizes and movement of the rectangles over time.
37 </Paragraph>
38 <Paragraph>
39 For calcMode='spline' in this test case, the initial rate of change is defined to be the same as linear, but the
40 last jump has an ease-in/ease-out effect where the change is slower at the start and end but faster in the middle.
41 </Paragraph>
42 </OperatorScript>
43 </SVGTestCase>
44 <title id="test-title">animate-elem-12-t</title>
45 <desc id="test-desc">Test possible values for 'calcMode'</desc>
46 <!--======================================================================-->
47 <!--Content of Test Case follows... =====================-->
48 <!--======================================================================-->
49 <g id="test-body-content">
50 <g font-family="Arial" font-size="30" >
51 <g transform="translate(20,50)">
52 <text x="0" y="203">at 0 sec.</text>
53 <text x="0" y="170">at 3 sec. </text>
54 <text x="0" y="114">at 6 sec. </text>
55 <text x="3" y="3">9+ sec. </text>
56 <g stroke="#800" stroke-width="4">
57 <line x1="120" y1="200" x2="170" y2="200"/>
58 <line x1="120" y1="167" x2="170" y2="167"/>
59 <line x1="120" y1="111" x2="170" y2="111"/>
60 <line x1="120" y1="0" x2="170" y2="0"/>
61 </g>
62 <rect x="140" y="-10" width="60" height="210" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
63 <animate id="an1" attributeName="height" calcMode="spline" keySplines="0,0,1,1;0,0,1,1;.75,0,0,.75" values="210;177;121;10" begin="0s" dur="9s" fill="freeze"/>
64 </rect>
65 </g>
67 <g transform="translate(250,50)">
68 <text x="0" y="203">at 0 sec.</text>
69 <text x="0" y="170">at 3 sec. </text>
70 <text x="0" y="114">at 6 sec. </text>
71 <text x="3" y="3">9+ sec. </text>
72 <g stroke="#800" stroke-width="4">
73 <line x1="120" y1="200" x2="170" y2="200"/>
74 <line x1="120" y1="167" x2="170" y2="167"/>
75 <line x1="120" y1="111" x2="170" y2="111"/>
76 <line x1="120" y1="0" x2="170" y2="0"/>
77 </g>
78 <rect x="140" y="-10" width="60" height="10" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
79 <animateMotion calcMode="spline" keySplines="0,0,1,1;0,0,1,1;.75,0,0,.75" values="0,200; 0,167; 0,111; 0,0" begin="0s" dur="9s" fill="freeze"/>
80 </rect>
81 </g>
82 </g>
83 </g>
84 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
85 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
86 </svg>