Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-64-t.svg
blob1b16073c80191f2951ec3ad0ea1cafbac91116c8
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 dur attribute" status="accepted" version="$Revision: 1.5 $" testname="$RCSfile: animate-elem-64-t.svg,v $">
11 <OperatorScript>
12 <Paragraph>
13 This tests performs basic tests on the dur attribute.
14 </Paragraph>
15 <Paragraph>
16 The first row shows a red rectangle subject to a &lt;set&gt; animation
17 with no begin attribute, no end attribute and a dur attribute set to
18 '2s'. Therefore, the animation should be active from 0 to 2 seconds and
19 then terminate. Consequently, the rectangle should show on the right
20 for the first two seconds, and then move to the left position.
21 </Paragraph>
22 <Paragraph>
23 The second row shows a red rectangle subject to a &lt;set&gt; animation
24 with no begin attribute, no end attribute and a dur attribute set to
25 'indefinite'. Therefore, the animation should stay active indefinitely
26 and the rectangle should always be on the right position, never on the
27 left position.
28 </Paragraph>
29 <Paragraph>
30 Finally, the third row shows red rectangle subject to a &lt;set&gt; animation
31 with no begin attribute, no end attribute and a dur attribute set to
32 'media'. In the context of SVG 1.1, this is equivalent to an 'indefinite'
33 value. Therefore, the animation should stay active indefinitely
34 and the rectangle should always be on the right position, never on the
35 left position.
36 </Paragraph>
37 </OperatorScript>
38 </SVGTestCase>
39 <title id="test-title">$RCSfile: animate-elem-64-t.svg,v $</title>
41 <!--======================================================================-->
42 <!--Content of Test Case follows... =====================-->
43 <!--======================================================================-->
44 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
45 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
47 <text text-anchor="middle" x="240" y="30" font-size="20">dur</text>
49 <g transform="translate(100, 100)">
51 <g transform="translate(80,25)" text-anchor="end" font-size="14">
52 <text>clock value</text>
53 <text y="65">indefinite</text>
54 <text y="130">media</text>
55 </g>
57 <g id="timeMarkersText" transform="translate(150, 5)" text-anchor="middle" font-size="14">
58 <text>&gt; 2s</text>
59 <text x="80">0s-2s</text>
61 <g transform="translate(0, 65)">
62 <text>never</text>
63 <text x="80">&gt; 0s</text>
64 </g>
66 <g transform="translate(0, 130)">
67 <text>never</text>
68 <text x="80">&gt; 0s</text>
69 </g>
70 </g>
72 <g transform="translate(150,20)" stroke="black">
73 <defs>
74 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
75 </defs>
77 <g id="setOne">
78 <use xlink:href="#shadow" x="0"/>
79 <use xlink:href="#shadow" x="80"/>
81 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
82 <set id="firstSet" attributeName="x" to="74" dur="2s"/>
83 </rect>
84 </g>
86 <g id="setTwo" transform="translate(0, 65)">
87 <use xlink:href="#shadow" x="0"/>
88 <use xlink:href="#shadow" x="80"/>
90 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
91 <set attributeName="x" to="74" dur="indefinite"/>
92 </rect>
93 </g>
95 <g id="setThree" transform="translate(0, 130)">
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="media"/>
101 </rect>
102 </g>
103 </g>
104 </g>
105 </svg>