Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-67-t.svg
blobd834ee8f6031d207017b54c21f36346b7515d88f
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--======================================================================-->
3 <!--= Copyright 2004 World Wide Web Consortium, (Massachusetts =-->
4 <!--= Institute of Technology, Institut National de Recherche en =-->
5 <!--= Informatique et en Automatique, Keio University). All Rights =-->
6 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
7 <!--======================================================================--><!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/" reviewer="CN" owner="VH" desc="Basic test on restart attribute" status="accepted" version="$Revision: 1.8 $" testname="$RCSfile: animate-elem-67-t.svg,v $">
11 <OperatorScript>
12 <Paragraph>
13 This tests performs basic tests on restart attribute
14 </Paragraph>
15 <Paragraph>
16 Each row in the test shows different rectangles subject to &lt;set&gt;
17 animations with different configurations with regards to the restart
18 attribute. For each row, the animation should be active
19 during the first 5 seconds of the animations where the red rectangle
20 should show in the right column. At five seconds into the animation,
21 all the rectangles should move to their left position.
22 </Paragraph>
23 <Paragraph>
24 On the first row, the &lt;set&gt; animation has a begin attribute set to
25 '0s;1s' and a dur attribute set to 4s. This should result in a first
26 interval of (0s &lt;= t &lt; 4s) which should be superceeded, at 1s, by a new interval
27 of (1s &lt;= t &lt; 5s) because the default restart behavior is 'always'.
28 Consequently, the rectangle should be in the right position during the
29 (0s &lt;= t &lt; 5s) interval and move to the left position at 5s.
30 </Paragraph>
31 <Paragraph>
32 On the second row, the &lt;set&gt; animation has a begin attribute set to
33 '0s;1s', a dur attribute set to 4s and a restart attribute set to always.
34 The behavior should be the same as for the first row.
35 </Paragraph>
36 <Paragraph>
37 On the third row, the first (left most) rectangle's &lt;set&gt; animation
38 has a begin attribute set to '0s;1s', a dur set to 5s and a restart attribute
39 set to whenNotActive. Because of the rules for computing intervals, the
40 animation's interval is (0s &lt;= t &lt; 5s) and is not superseded by a (1s &lt;= t &lt; 6s) interval
41 because of the restart value.
43 The second (right most) red rectangle's &lt;set&gt; animation has a begin
44 attribute set to '0s;2.5s' and a dur attribute set to 2.5s. This results in
45 a first interval (0s &lt;= t &lt; 2.5s) which is followed by a (2.5s &lt;= t &lt; 5s) interval. Consequently,
46 the rectangle stays on its right position for the first five seconds before it definitively
47 moves to the left position.
48 </Paragraph>
49 <Paragraph>
50 On the fourth row, the &lt;set&gt; animation has a begin attribute set to
51 '0s;5s' and a dur attribute set to 5s. This results in a first interval of (0s &lt;= t &lt; 5s).
52 Because the restart attribute is set to 'never', the following possible interval,
53 (5s &lt;= t &lt; 10s) does not apply and the animation is only active for the first 5 seconds.
54 </Paragraph>
55 <Paragraph>
56 The fifth row shows a simple animated red rectangle which lasts for 5 seconds. It shows
57 a reference of how the other animations should behave visually: all red rectangles should
58 have the same horizontal position as the one on the reference row, at any time during the
59 animation.
60 </Paragraph>
61 </OperatorScript>
62 </SVGTestCase>
63 <title id="test-title">$RCSfile: animate-elem-67-t.svg,v $</title>
65 <!--======================================================================-->
66 <!--Content of Test Case follows... =====================-->
67 <!--======================================================================-->
68 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
69 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
71 <text text-anchor="middle" x="240" y="30" font-size="20">restart</text>
73 <g transform="translate(130, 80)">
75 <g transform="translate(120,45)" text-anchor="end" font-size="14">
76 <text>no restart (defaults to always)</text>
77 <text y="25">restart="always"</text>
78 <text y="50">restart="whenNotActive"</text>
79 <text y="75">restart="never"</text>
80 <text y="100">reference</text>
81 </g>
83 <g id="timeMarkersText" transform="translate(180, 25)" text-anchor="middle" font-size="14">
84 <text>&gt; 5s</text>
85 <text x="80">0s-5s</text>
86 </g>
88 <g transform="translate(180,40)" stroke="black">
89 <defs>
90 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
91 </defs>
93 <g id="setOne">
94 <use xlink:href="#shadow" x="0"/>
95 <use xlink:href="#shadow" x="80"/>
97 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
98 <set id="firstSet" attributeName="x" to="74" begin="0s;1s" dur="4s"/>
99 </rect>
101 </g>
103 <g id="setTwo" transform="translate(0, 25)">
104 <use xlink:href="#shadow" x="0"/>
105 <use xlink:href="#shadow" x="80"/>
107 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
108 <set attributeName="x" to="74" begin="0s;1s" dur="4s" restart="always"/>
109 </rect>
111 </g>
113 <g id="setThree" transform="translate(0, 50)">
114 <use xlink:href="#shadow" x="0"/>
115 <use xlink:href="#shadow" x="80"/>
117 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
118 <set attributeName="x" to="74" begin="0s;1s" dur="5s" restart="whenNotActive"/>
119 </rect>
121 <g transform="translate(20,0)">
122 <use xlink:href="#shadow" x="0"/>
123 <use xlink:href="#shadow" x="80"/>
125 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
126 <set attributeName="x" to="74" begin="0s;2.5s" dur="2.5s" restart="whenNotActive"/>
127 </rect>
128 </g>
129 </g>
131 <g id="setFour" transform="translate(0, 75)">
132 <use xlink:href="#shadow" x="0"/>
133 <use xlink:href="#shadow" x="80"/>
135 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
136 <set attributeName="x" to="74" begin="0s;5s" dur="5s" restart="never"/>
137 </rect>
138 </g>
140 <g id="reference" transform="translate(0, 100)">
141 <use xlink:href="#shadow" x="0"/>
142 <use xlink:href="#shadow" x="80"/>
144 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
145 <set attributeName="x" to="74" dur="5s"/>
146 </rect>
147 </g>
148 </g>
149 </g>
150 </svg>