Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-68-t.svg
blobdd83fdcde28e6cb7c6605bb2ca814464f8aab4a5
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 the repeatCount attribute" status="accepted" version="$Revision: 1.7 $" testname="$RCSfile: animate-elem-68-t.svg,v $">
11 <OperatorScript>
12 <Paragraph>
13 This tests performs basic tests on the repeatCount 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 repeatCount
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 its dur attribute set to
25 '5s' and its repeatCount unspecified. Consequently, its only interval
26 is (0s &lt;= t &lt; 5s).
27 </Paragraph>
28 <Paragraph>
29 On the second row, the &lt;set&gt; animation has its dur attribute set to
30 1s and its repeatCount set to 5. Consequently, its only interval is
31 (0s &lt;= t &lt; 5s (1s*5)).
32 </Paragraph>
33 <Paragraph>
34 On the third row, the &lt;set&gt; animation has its dur attribute set to
35 10s and its repeatCount set to 0.5. Consequently, its only interval is
36 (0s &lt;= t &lt; 5s (10s*0.5))
37 </Paragraph>
38 <Paragraph>
39 On the fourth row, the &lt;set&gt; animation has its dur attribute set to
40 1s and its repeatCount set to indefinite. It also has an end attribute
41 set to 5s. Consequently, the repeat duration is indefinite, but the active
42 duration is limited by the end attribute and the active interval is (0s &lt;= t &lt; 5s).
43 </Paragraph>
44 </OperatorScript>
45 </SVGTestCase>
46 <title id="test-title">$RCSfile: animate-elem-68-t.svg,v $</title>
48 <!--======================================================================-->
49 <!--Content of Test Case follows... =====================-->
50 <!--======================================================================-->
51 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
52 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
54 <text text-anchor="middle" x="240" y="30" font-size="20">repeatCount</text>
56 <g transform="translate(130, 80)">
58 <g transform="translate(120,45)" text-anchor="end" font-size="14">
59 <text>dur=5s repeatCount unspecified</text>
60 <text y="25">dur=1s repeatCount=5</text>
61 <text y="50">dur=10s repeatCount=0.5</text>
62 <text y="75">dur=1s repeatCount=indefinite</text>
63 <text y="90">end=5s</text>
64 </g>
66 <g id="timeMarkersText" transform="translate(180, 25)" text-anchor="middle" font-size="14">
67 <text>&gt; 5s</text>
68 <text x="80">0s-5s</text>
69 </g>
70 <g transform="translate(180,40)" stroke="black">
71 <defs>
72 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
73 </defs>
75 <g id="setOne">
76 <use xlink:href="#shadow" x="0"/>
77 <use xlink:href="#shadow" x="80"/>
79 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
80 <set id="firstSet" attributeName="x" to="74" dur="5s"/>
81 </rect>
83 </g>
85 <g id="setTwo" transform="translate(0, 25)">
86 <use xlink:href="#shadow" x="0"/>
87 <use xlink:href="#shadow" x="80"/>
89 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
90 <set attributeName="x" to="74" dur="1s" repeatCount="5"/>
91 </rect>
93 </g>
95 <g id="setThree" transform="translate(0, 50)">
96 <use xlink:href="#shadow" x="0"/>
97 <use xlink:href="#shadow" x="80"/>
99 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
100 <set attributeName="x" to="74" dur="10s" repeatCount="0.5"/>
101 </rect>
102 </g>
104 <g id="setFour" transform="translate(0, 75)">
105 <use xlink:href="#shadow" x="0"/>
106 <use xlink:href="#shadow" x="80"/>
108 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
109 <set attributeName="x" to="74" dur="1s" end="5s" repeatCount="indefinite"/>
110 </rect>
111 </g>
113 </g>
114 </g>
115 </svg>