Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-33-t.svg
blob491f623107e049ec4a638013c451f9c87066813b
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- =====================================================================-->
3 <!-- animate-elem-33-t.svg -->
4 <!-- -->
5 <!-- Tests AnimateMotion with keyPoints and keyTimes. -->
6 <!-- -->
7 <!-- Author : Ola Andersson, 07-Oct-2003 --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
9 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
10 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewed="YES" reviewer="VH" owner="OA" desc="Tests AnimateMotion with keyPoints and keyTimes" status="accepted" version="$Revision: 1.8 $" testname="$RCSfile: animate-elem-33-t.svg,v $">
11 <OperatorScript>
12 <Paragraph>
13 The purpose of this test is to test animateMotion with keyPoints and keyTimes.
14 </Paragraph>
15 <Paragraph>
16 The test consists of 4 sub-tests. Each test has a purple circle which moves along a path. The path is indicated with a dashed line and sample points where the circle should pass a certain position on the path is indicated with gray circles. On top of each gray circle is a number which indicates the passing time in seconds. In the cases where the purple circle should pass the gray circle two times the first passing time is written above the gray circle and the second passing time is written below.
17 </Paragraph>
18 <Paragraph>
19 Section 19.2.12 in the spec. states that a motion path is defined by the path attribute or by values or from/to attributes. So in the animateMotion case, values is just used for defining the motionPath and the number of values do not have to relate to the number of keyTimes.
21 </Paragraph>
22 </OperatorScript>
23 </SVGTestCase>
24 <!-- FIRST TEST-->
25 <g transform="translate(110, 50) scale(0.6)">
26 <text x="-160" y="-30" font-size="30" stroke="none" fill="#ccc">0</text>
27 <text x="-50" y="-30" font-size="30" stroke="none" fill="#ccc">0.8-3.2</text>
28 <text x="140" y="-30" font-size="30" stroke="none" fill="#ccc">4</text>
29 <g fill="none" stroke="#888" stroke-dasharray="10,6">
30 <polyline points="-150,0 0,0 150,0"/>
31 </g>
32 <g fill="#ccc" stroke="#555">
33 <circle cx="-150" r="20"/>
34 <circle r="20"/>
35 <circle cx="150" r="20"/>
36 </g>
37 <circle r="20" fill="rgb(204,0,102)" stroke="#000" stroke-width="3">
38 <animateMotion dur="4" values="-150 0; 150 0" calcMode="linear" fill="freeze" keyTimes="0; 0.2; 0.4; 0.6; 0.8; 1" keyPoints="0; 0.5; 0.5; 0.5; 0.5; 1"/>
39 </circle>
40 </g>
41 <!-- SECOND TEST-->
42 <g transform="translate(370, 50) scale(0.6)">
43 <text x="-160" y="-30" font-size="30" stroke="none" fill="#ccc">0</text>
44 <text x="-100" y="-30" font-size="30" stroke="none" fill="#ccc">2</text>
45 <text x="80" y="-30" font-size="30" stroke="none" fill="#ccc">2</text>
46 <text x="140" y="-30" font-size="30" stroke="none" fill="#ccc">4</text>
47 <g fill="none" stroke="#888" stroke-dasharray="10,6">
48 <polyline points="-150,0 -90,0"/>
49 <polyline points="90,0 150,0"/>
50 </g>
51 <g fill="#ccc" stroke="#555">
52 <circle cx="-150" r="20"/>
53 <circle cx="-90" r="20"/>
54 <circle cx="90" r="20"/>
55 <circle cx="150" r="20"/>
56 </g>
57 <circle r="20" fill="rgb(204,0,102)" stroke="#000" stroke-width="3">
58 <animateMotion dur="4" values="-150 0; 150 0" calcMode="linear" fill="freeze" keyTimes="0; 0.5; 0.5; 0.5; 0.5; 1" keyPoints="0; 0.2; 0.4; 0.6; 0.8; 1"/>
59 </circle>
60 </g>
61 <!-- THIRD TEST-->
62 <!-- The lenght of the lines in the polyline (motionpath) are 100,50 and 100.
63 The animated circle starts at the midpoint of one of the "legs" and also pass
64 this point at time 1.4 since
65 1.4 = 4*(0.25) + (4*(0.75-0.25))*(1/5).
66 Where 0.25 is the time at keyPoint 1 (2nd) and 1/5 since the control circle is at
67 1/5 of the distance between keyPoint 1 and 0 (2nd and 3rd).-->
68 <g transform="translate(110, 180) scale(0.6)">
69 <text x="-115" y="-30" font-size="30" stroke="none" fill="#ccc">3</text>
70 <text x="-85" y="-60" font-size="30" stroke="none" fill="#ccc">2.6</text>
71 <text x="60" y="-60" font-size="30" stroke="none" fill="#ccc">0</text>
72 <text x="95" y="-30" font-size="30" stroke="none" fill="#ccc">1</text>
73 <text x="-75" y="20" font-size="30" stroke="none" fill="#ccc">4</text>
74 <text x="40" y="20" font-size="30" stroke="none" fill="#ccc">1.4</text>
75 <g fill="none" stroke="#888" stroke-dasharray="10,6">
76 <polyline points="-105,0 -25,-60 25,-60 105,0"/>
77 </g>
78 <g fill="#ccc" stroke="#555">
79 <circle cx="-105" r="20"/>
80 <circle cx="-65" cy="-30" r="20"/>
81 <circle cx="65" cy="-30" r="20"/>
82 <circle cx="105" r="20"/>
83 </g>
84 <circle r="20" fill="rgb(204,0,102)" stroke="#000" stroke-width="3">
85 <animateMotion dur="4" path="M -105,0 L -25,-60 25,-60 105,0" calcMode="linear" fill="freeze" keyPoints="0.8; 1; 0; 0.2" keyTimes="0; 0.25; 0.75; 1"/>
86 </circle>
87 </g>
88 <!-- FOURTH TEST-->
89 <g transform="translate(370, 160) scale(0.6)">
90 <text x="-135" y="-30" font-size="30" stroke="none" fill="#ccc">3</text>
91 <text x="-95" y="-30" font-size="30" stroke="none" fill="#ccc">2.6</text>
92 <text x="65" y="-30" font-size="30" stroke="none" fill="#ccc">0</text>
93 <text x="115" y="-30" font-size="30" stroke="none" fill="#ccc">1</text>
94 <text x="-85" y="50" font-size="30" stroke="none" fill="#ccc">4</text>
95 <text x="50" y="50" font-size="30" stroke="none" fill="#ccc">1.4</text>
96 <g fill="none" stroke="#888" stroke-dasharray="10,6">
97 <polyline points="-125,0 125,0"/>
98 </g>
99 <g fill="#ccc" stroke="#555">
100 <circle cx="-125" r="20"/>
101 <circle cx="-75" r="20"/>
102 <circle cx="75" r="20"/>
103 <circle cx="125" r="20"/>
104 </g>
105 <circle r="20" fill="rgb(204,0,102)" stroke="#000" stroke-width="3">
106 <animateMotion dur="4" from="-125,0" to="125,0" calcMode="linear" fill="freeze" keyPoints="0.8; 1; 0; 0.2" keyTimes="0; 0.25; 0.75; 1"/>
107 </circle>
108 </g>
109 <text x="5" y="235" font-size="28">Test of keyPoints and keyTimes.</text>
110 <text x="5" y="265" font-size="18">Number indicates the circle's passing time in seconds.</text>
111 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
112 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
113 </svg>