Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-60-t.svg
blob3a0ad695e3960e14c94b68418c1c87e479523db8
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">
11 <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="Test on various begin attribute values" status="accepted" version="$Revision: 1.6 $" testname="$RCSfile: animate-elem-60-t.svg,v $">
13 <OperatorScript>
15 <Paragraph>
17 This test performs basic test on the begin attribute,
19 assuming support for the &lt;set&gt; element and setting the
21 fill attribute on a &lt;rect&gt; element.
23 </Paragraph>
25 <Paragraph>
27 The test validates the various possibilities for the begin attribute
29 value: no specified value, offset value, event base value, sync base
31 value, indefinite value, repeat value, accessKey value and wallclock.
33 </Paragraph>
35 <Paragraph>
37 There is one or several &lt;set&gt; elements for each of the possible begin
39 values. For each test, the &lt;set&gt; element(s) has (or have) an indefinite
41 duration and no other timing attribute specified other than begin
43 and dur.
45 </Paragraph>
47 <Paragraph>
49 There are two sets of vertical markers which help check that the test
51 is handled properly by the user agent. The first set, on the left, shows
53 markers from 0s to 8s, where the times are offset from the document's load time.
55 The rectangles in that area should turn green at the time corresponding
57 to the column they are in. From example, the first rectangle (going left to right)
59 on the "sync base" line should turn green 2 seconds after the document's load.
61 The second set of time vertical markers shows offset from a particular event.
63 For example, for the event base, the markers show an offset to the time
65 the first event base rectangle (the left-most one) is clicked on. For the
67 accessKey line, the times show offsets from the time the 'a' key is pressed
69 and the document has focus.
71 </Paragraph>
73 <Paragraph>
75 The first &lt;set&gt; has an unspecified begin attribute. That value
77 defaults to an offset of 0s so the animation should apply as soon as
79 the document is loaded.
81 </Paragraph>
83 <Paragraph>
85 The second &lt;set&gt; has its begin attribute set to '2s'. So its
87 target rectangle should turn green two seconds after the document is
89 loaded.
91 </Paragraph>
93 <Paragraph>
95 The third &lt;set&gt; has its begin attribute set to an event base
97 value 'click'. The user has to click on the left-most target red rectangle
99 to make the &lt;set&gt; target turn green. There are two rectangles
101 with associated &lt;set&gt; elements. The left most ones has a simple
103 value (no offset) and the second one is offset from the event time by 2 seconds.
105 </Paragraph>
107 <Paragraph>
109 The fourth &lt;set&gt; elements have their begin attributes set to a sync base
111 value. The first two rectangles have &lt;set&gt; elements synchronized on their sync base
113 begin. The left-most one has no offset and the following one has a 2 seconds offset.
115 The last two rectangles have &lt;set&gt; elements synchronized on their sync base end.
117 The first one (i.e., the third from left to right on that line), has a 2 seconds
119 negative offset. The second one (i.e., the last one on the line) has no offset and should
121 begin at the time its sync base ends.
123 </Paragraph>
125 <Paragraph>
127 The fifth &lt;set&gt; has its begin attribute set to indefinite and
129 should not turn red and stay green.
131 </Paragraph>
133 <Paragraph>
135 The sixth &lt;set&gt;s have their begin attributes have their begin attributes
137 based on the repeat() function. The repeat they are synchronized on happens
139 at 3s. The first &lt;set&gt;, which has no offset, should begin at 3s. The
141 second &lt;set&gt;, which has a 2 seconds offset, should start at 5s.
143 </Paragraph>
145 <Paragraph>
147 The seventh &lt;set&gt;s have their begin attributes set to 'accessKey(a)'.
149 The first one has no offset and should become active (and turn the rectangle
151 green), as soon as the key 'a' is pressed in the user agent. The second &lt;set&gt;
153 has a 2s offset and should become active 2 seconds after the 'a' key is pressed in
155 the user agent.
157 </Paragraph>
159 <Paragraph>
161 The eight's &lt;set&gt; target has its begin attribute set to
163 'wallclock()'. Therefore, the target should never turn red because the
165 target wallclock time is in the past.
167 </Paragraph>
169 </OperatorScript>
171 </SVGTestCase>
173 <title id="test-title">$RCSfile: animate-elem-60-t.svg,v $</title>
177 <!--======================================================================-->
179 <!--Content of Test Case follows... =====================-->
181 <!--======================================================================-->
183 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.6 $</text>
185 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
189 <text text-anchor="middle" x="240" y="30" font-size="20">begin</text>
193 <g transform="translate(100, 80)">
197 <g transform="translate(80,5)" text-anchor="end" font-size="14">
199 <text>unspecified</text>
201 <text y="25">offset</text>
203 <text y="50">event base</text>
205 <text y="75">sync base</text>
207 <text y="100">indefinite</text>
209 <text y="125">repeat()</text>
211 <text y="150">accessKey()</text>
213 <text y="175">wallclock()</text>
215 </g>
219 <g id="timeMarkersText" transform="translate(100, -15)" text-anchor="middle" font-size="8">
221 <text>0s</text>
223 <text x="12">1s</text>
225 <text x="24">2s</text>
227 <text x="36">3s</text>
229 <text x="48">4s</text>
231 <text x="60">5s</text>
233 <text x="72">6s</text>
235 <text x="84">7s</text>
237 <text x="96">8s</text>
241 <text x="120">0s</text>
243 <text x="132">1s</text>
245 <text x="144">2s</text>
247 </g>
251 <g id="timeMarkers" transform="translate(94, -10) scale(1, 8)">
253 <rect width="12" height="25" fill="#eee"/>
255 <rect x="12" width="12" height="25" fill="#ddd"/>
257 <rect x="24" width="12" height="25" fill="#eee"/>
259 <rect x="36" width="12" height="25" fill="#ddd"/>
261 <rect x="48" width="12" height="25" fill="#eee"/>
263 <rect x="60" width="12" height="25" fill="#ddd"/>
265 <rect x="72" width="12" height="25" fill="#eee"/>
267 <rect x="84" width="12" height="25" fill="#ddd"/>
269 <rect x="96" width="12" height="25" fill="#eee"/>
273 <rect x="120" width="12" height="25" fill="#eee"/>
275 <rect x="132" width="12" height="25" fill="#ddd"/>
277 <rect x="144" width="12" height="25" fill="#eee"/>
279 </g>
283 <g transform="translate(100,0)">
285 <g id="setOne">
287 <rect x="-6" y="-6" width="12" height="12" fill="#F33">
289 <set attributeName="fill" to="#3F3" dur="indefinite"/>
291 </rect>
293 </g>
297 <g id="setTwo" transform="translate(0, 25)">
299 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(24,0)">
301 <set id="secondSet" attributeName="fill" to="#3F3" begin="2s" dur="indefinite"/>
303 </rect>
305 </g>
309 <g id="setThree" transform="translate(0, 50)">
311 <rect id="setThreeTarget" x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(120,0)">
313 <set attributeName="fill" id="thirdSet" to="#3F3" begin="setThreeTarget.click" dur="indefinite"/>
315 </rect>
319 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(144,0)">
321 <set attributeName="fill" id="thirdSetOffset" to="#3F3" begin="setThreeTarget.click + 2s" dur="indefinite"/>
323 </rect>
325 </g>
329 <g id="setFour" transform="translate(0, 75)">
331 <set id="endBase" attributeName="display" to="inline" begin="7s" dur="1s"/>
333 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(24,0)">
335 <set attributeName="fill" to="#3F3" begin="secondSet.begin" dur="indefinite"/>
337 </rect>
341 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(48,0)">
343 <set attributeName="fill" to="#3F3" begin="secondSet.begin + 2s" dur="indefinite"/>
345 </rect>
349 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(72,0)">
351 <set attributeName="fill" to="#3F3" begin="endBase.end - 2s" dur="indefinite"/>
353 </rect>
357 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(96,0)">
359 <set attributeName="fill" to="#3F3" begin="endBase.end" dur="indefinite"/>
361 </rect>
363 </g>
367 <g id="setFive" transform="translate(0, 100)">
369 <rect x="-6" y="-6" width="12" height="12" fill="#3F3">
371 <set attributeName="fill" to="#F33" begin="indefinite" dur="indefinite"/>
373 </rect>
375 </g>
379 <g id="setSix" transform="translate(0, 125)">
381 <set id="repeatingSet" attributeName="display" to="inline" begin="0s" dur="1s" repeatCount="4"/>
383 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(36,0)">
385 <set attributeName="fill" to="#3F3" begin="repeatingSet.repeat(3)" dur="indefinite"/>
387 </rect>
391 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(60,0)">
393 <set attributeName="fill" to="#3F3" begin="repeatingSet.repeat(3) + 2s" dur="indefinite"/>
395 </rect>
397 </g>
401 <g id="setSeven" transform="translate(0, 150)">
403 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(120,0)">
405 <set attributeName="fill" to="#3F3" begin="accessKey(a)" dur="indefinite"/>
407 </rect>
411 <rect x="-6" y="-6" width="12" height="12" fill="#F33" transform="translate(144,0)">
413 <set attributeName="fill" to="#3F3" begin="accessKey(a) + 2s" dur="indefinite"/>
415 </rect>
417 </g>
421 <g id="setEight" transform="translate(0, 175)">
423 <rect x="-6" y="-6" width="12" height="12" fill="#3F3">
425 <set attributeName="fill" to="#F33" begin="wallclock(2000-06-10T12:34:56Z)" dur="indefinite"/>
427 </rect>
429 </g>
431 </g>
433 </g>
435 </svg>