Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-65-t.svg
blobb4579a11f9ebd69edf141ad366d20de1e0649948
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 tests on the min attribute" status="accepted" version="$Revision: 1.7 $" testname="$RCSfile: animate-elem-65-t.svg,v $">
11 <OperatorScript>
12 <Paragraph>
13 This tests performs basic tests on the min attribute. The test is based
14 on the SMIL specification at:
15 http://www.w3.org/TR/smil20/smil-timing.html#Timing-MinMax.
16 </Paragraph>
17 <Paragraph>
18 Each row in the test shows different rectangles subject to &lt;set&gt;
19 animations with different configurations with regards to the min
20 attribute. For each row but the last one, the animation should be active
21 during the first 5 seconds of the animations where the red rectangle
22 should show in the right column. At five seconds into the animation,
23 all the rectangles should move to their left position.
24 </Paragraph>
25 <Paragraph>
26 On the first row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 5s) active duration
27 and no min attribute so the actual active duration is (0s &lt;= t &lt; 5s).
28 The first row shows a second rectangle with a &lt;set&gt; animation with
29 the same configuration except that the min attribute value is set to
30 'media'. Because the &lt;set&gt; element does not define a media, the
31 behavior should be as if the attribute was not specified.
32 </Paragraph>
33 <Paragraph>
34 On the second row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 5s) active duration
35 and a min attribute set to '-6s'. That value is invalid for min and, as
36 per the specification, the behavior should be as if the attribute was not
37 specified. Consequently, the behavior is as for the previous row and
38 the actual active duration is (0s &lt;= t &lt; 5s).
39 </Paragraph>
40 <Paragraph>
41 On the third row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 5s) active duration
42 and a min attribute set to '3s'. The min value is less than the active
43 duration, so the min attribute does not actually constrain the active duration.
44 </Paragraph>
45 <Paragraph>
46 On the fourth row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 2s) initial active duration,
47 an indefinite simple duration (dur is set to indefinite) and a min attribute set to '3s'.
48 Because the initial active duration is less than the min attribute and because the
49 simple duration is greater than the min value, the animation is active for the
50 (min constrained) active duration, i.e., (0s &lt;= t &lt; 5s).
51 </Paragraph>
52 <Paragraph>
53 On the fifth row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 2s) initial active duration,
54 an (0s &lt;= t &lt; 7s) repeat duration and a 5s min attribute value. Because the initial
55 active duration is less than the min attribute and because the repeat duration is greater
56 than the min value, the animation active for the (min constrained) active duration,
57 i.e., (0s &lt;= t &lt; 5s).
58 </Paragraph>
59 <Paragraph>
60 On the sixth row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 2s) initial active duration,
61 an (0s &lt;= t &lt; 5s) repeat duration and an 8s min attribute value. Because the initial
62 active duration is less than the min attribute and because the repeat duration is
63 less than the min value (5s &lt; 8s) and because the fill attribute is set to
64 'remove' on the &lt;set&gt; animation, the animation's active duration is (0s &lt;= t &lt; 5s).
65 </Paragraph>
66 <Paragraph>
67 On the seventh row, the &lt;set&gt; animation has a (0s &lt;= t &lt; 2s) initial active duration,
68 a (0s &lt;= t &lt; 5s) repeat duration and an 8s min attribute value. Because the initial
69 active duration is less than the min attribute and because the repeat duration is
70 less than the min value (5s &lt; 8s) and because the fill attribute is set to
71 'freeze' on the &lt;set&gt; animation, the animation's active duration is (0s &lt;= t &lt; 5s)
72 but, because the fill state is 'freeze', the &lt;set&gt; applies indefinitely.
73 </Paragraph>
74 </OperatorScript>
75 </SVGTestCase>
76 <title id="test-title">$RCSfile: animate-elem-65-t.svg,v $</title>
78 <!--======================================================================-->
79 <!--Content of Test Case follows... =====================-->
80 <!--======================================================================-->
81 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
82 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
84 <text text-anchor="middle" x="240" y="30" font-size="20">min</text>
86 <g transform="translate(100, 50)">
88 <g transform="translate(120,45)" text-anchor="end" font-size="14">
89 <text>no min / media</text>
90 <text y="25">invalid min</text>
91 <text y="50">min &lt; active dur</text>
92 <text y="75">min &gt; active dur</text>
93 <text y="100">min &lt; repeat dur</text>
94 <text y="125">min &gt; repeat dur, remove</text>
95 <text y="180">min &gt; repeat dur, freeze</text>
96 </g>
98 <g id="timeMarkersText" transform="translate(150, 25)" text-anchor="middle" font-size="14">
99 <text>&gt; 5s</text>
100 <text x="80">0s-5s</text>
102 <g transform="translate(0, 180)">
103 <text>never</text>
104 <text x="80">&gt; 0s</text>
105 </g>
106 </g>
108 <g transform="translate(150,40)" stroke="black">
109 <defs>
110 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
111 </defs>
113 <g id="setOne">
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 id="firstSet" attributeName="x" to="74" end="5s"/>
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" end="5s" min="media"/>
127 </rect>
128 </g>
129 </g>
131 <g id="setTwo" transform="translate(0, 25)">
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" min="-6s" end="5s"/>
137 </rect>
138 </g>
140 <g id="setThree" transform="translate(0, 50)">
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" min="3s" end="5s"/>
146 </rect>
147 </g>
149 <g id="setFour" transform="translate(0, 75)">
150 <use xlink:href="#shadow" x="0"/>
151 <use xlink:href="#shadow" x="80"/>
153 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
154 <set attributeName="x" to="74" min="5s" dur="indefinite" end="2s"/>
155 </rect>
156 </g>
158 <g id="setFive" transform="translate(0, 100)">
159 <use xlink:href="#shadow" x="0"/>
160 <use xlink:href="#shadow" x="80"/>
162 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
163 <set attributeName="x" to="74" min="5s" end="2s" dur="1s" repeatCount="7"/>
164 </rect>
165 </g>
167 <g id="setSix" transform="translate(0, 125)">
168 <use xlink:href="#shadow" x="0"/>
169 <use xlink:href="#shadow" x="80"/>
171 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
172 <set attributeName="x" to="74" min="8s" end="2s" dur="1s" repeatCount="5" fill="remove"/>
173 </rect>
174 </g>
176 <g id="setSeven" transform="translate(0, 180)">
177 <use xlink:href="#shadow" x="0"/>
178 <use xlink:href="#shadow" x="80"/>
180 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
181 <set attributeName="x" to="74" min="8s" end="2s" dur="1s" repeatCount="5" fill="freeze"/>
182 </rect>
183 </g>
184 </g>
185 </g>
186 </svg>