Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / animate-elem-02-t.svg
blobce7bdc996350f89f844bdaf4c87ea7cce2a7660a
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
3 <!--======================================================================-->
4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, Institut National de Recherche en =-->
6 <!--= Informatique et en Automatique, Keio University). All Rights =-->
7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <!-- =====================================================================-->
10 <!-- -->
11 <!-- animation-add-BE-09.svg -->
12 <!-- renamed for 1.1 suite to animate-elem-02-t.svg -->
13 <!-- -->
14 <!-- Test 'additive' and 'accumulate' attributes. -->
15 <!-- -->
16 <!-- Author : Jon Ferraiolo 11-Aug-2000 -->
17 <!-- Revised for 1.1 : Rick Graham Feb/05/2002 -->
18 <!-- -->
19 <!-- History: -->
20 <!-- 11-Aug-2000, JF: Serial#1 created. -->
21 <!-- -->
22 <!-- =====================================================================-->
23 <!--======================================================================-->
24 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
25 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
26 <!--======================================================================-->
27 <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root"
28 width="100%" height="100%" viewBox="0 0 480 360">
29 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
30 <!--nav data here-->
31 <OperatorScript version="$Revision: 1.8 $" testname="animate-elem-02-t.svg">
32 <Paragraph>
33 Test 'additive' and 'accumulate' attributes.
34 </Paragraph>
35 <Paragraph>
36 The four pictures show the effect with the four possible combinations of
37 'additive' (either 'replace' or 'sum') and 'accumulate' (either 'none' or 'sum').
38 Because two animations are animating the height, the effects of 'additive' and
39 'accumulate' are sometimes different than when there is only a single animation.
40 </Paragraph>
41 </OperatorScript>
42 </SVGTestCase>
43 <title id="test-title">animate-elem-02-t</title>
44 <desc id="test-desc">Test 'additive' and 'accumulate' attributes.</desc>
45 <!--======================================================================-->
46 <!--Content of Test Case follows... =====================-->
47 <!--======================================================================-->
48 <g id="test-body-content" font-family="Arial" font-size="30">
50 <g transform="translate(0, 0)">
51 <rect x="60" y="20" width="50" height="200" fill="#dfdfdf" stroke="#dfdfdf" stroke-width="4"/>
52 <line x1="40" x2="100" y1="220" y2="220" fill="none" stroke="#880000" stroke-width="4"/>
53 <line x1="40" x2="100" y1="120" y2="120" fill="none" stroke="#880000" stroke-width="4"/>
54 <rect x="60" y="20" width="50" height="20" fill="#0f5" stroke="#085" stroke-width="4">
55 <animate id="an5" attributeName="height" calcMode="discrete" additive="replace" accumulate="none"
56 repeatCount="2" from="200" to="20" begin="0s" dur="4s" fill="freeze"/>
57 </rect>
58 <text x="30" y="285" fill="navy">anim.5</text>
59 </g>
60 <g transform="translate(110, 0)">
61 <rect x="60" y="20" width="50" height="200" fill="#dfdfdf" stroke="#dfdfdf" stroke-width="4"/>
62 <line x1="40" x2="100" y1="220" y2="220" fill="none" stroke="#880000" stroke-width="4"/>
63 <line x1="40" x2="100" y1="120" y2="120" fill="none" stroke="#880000" stroke-width="4"/>
64 <rect x="60" y="20" width="50" height="20" fill="#0f5" stroke="#085" stroke-width="4">
65 <animate id="an6" attributeName="height" calcMode="discrete" additive="sum" accumulate="none"
66 repeatCount="2" from="200" to="20" begin="0s" dur="4s" fill="freeze"/>
67 </rect>
68 <text x="30" y="285" fill="navy">anim.6</text>
69 </g>
70 <g transform="translate(220, 0)">
71 <rect x="60" y="20" width="50" height="200" fill="#dfdfdf" stroke="#dfdfdf" stroke-width="4"/>
72 <line x1="40" x2="100" y1="220" y2="220" fill="none" stroke="#880000" stroke-width="4"/>
73 <line x1="40" x2="100" y1="120" y2="120" fill="none" stroke="#880000" stroke-width="4"/>
74 <rect x="60" y="20" width="50" height="20" fill="#0f5" stroke="#085" stroke-width="4">
75 <animate id="an7" attributeName="height" calcMode="discrete" additive="replace" accumulate="sum"
76 repeatCount="2" from="200" to="20" begin="0s" dur="4s" fill="freeze"/>
77 </rect>
78 <text x="30" y="285" fill="navy">anim.7</text>
79 </g>
80 <g transform="translate(330, 0)">
81 <rect x="60" y="20" width="50" height="200" fill="#dfdfdf" stroke="#dfdfdf" stroke-width="4"/>
82 <line x1="40" x2="100" y1="220" y2="220" fill="none" stroke="#880000" stroke-width="4"/>
83 <line x1="40" x2="100" y1="120" y2="120" fill="none" stroke="#880000" stroke-width="4"/>
84 <rect x="60" y="20" width="50" height="20" fill="#0f5" stroke="#085" stroke-width="4">
85 <animate id="an8" attributeName="height" calcMode="discrete" additive="sum" accumulate="sum"
86 repeatCount="2" from="200" to="20" begin="0s" dur="4s" fill="freeze"/>
87 </rect>
88 <text x="30" y="285" fill="navy">anim.8</text>
89 </g>
90 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
91 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
92 </g>
93 </svg>