summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/import/animate-elem-46-t-manual.svg
blob: 8f1e3e9e313954fabf0c203645d9f07d21d0c4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<svg version="1.1" baseProfile="tiny" id="svg-root"
  width="100%" height="100%" viewBox="0 0 480 360"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <!--======================================================================-->
  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
  <!--======================================================================-->
  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
  <!--=  Institute of Technology, European Research Consortium for         =-->
  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
  <!--=  All Rights Reserved.                                              =-->
  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
  <!--======================================================================-->
  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
    template-version="1.4" reviewer="CN" author="VH" status="accepted"
    version="$Revision: 1.9 $" testname="$RCSfile: animate-elem-46-t.svg,v $">
    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/animate.html#Animation">
      <p>
        This test validates the operation of the animate element on the various
        text and font properties. This test is very similar to animate-elem-77-t.svg
        which uses the set element instead of the animate element to modify graphics
        properties.
      </p>
      <p>
        For each text or font properties, there are three tests. One animates the text or font
        property directly on a text element which uses the
        property. The other two tests apply the animation on a container element (g and
        a), and validate that the animated property is inherited by children text elements.
      </p>
      <p>
        For each animation test, the element on which the animation is applied is also
        translated by an animation so that the various states of the animation can
        be checked more easily. There is a gray reference marker which shows
        the expected animation state at the begining of the animation, mid-way, or at the
        end of the animation.
      </p>
    </d:testDescription>
    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
      <p>Run the test. No interaction required.</p>
    </d:operatorScript>
    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
      <p>
        There are 5 text properties that are animated, and for each of these,
        they are animated in one of three different ways (the three columns).  The
        three animations in each row must be the same.
      </p>
      <p>
        For each animation test, the element on which the animation is applied is also
        translated by an animation so that the various states of the animation can
        be checked more easily.  Each test has three gray silhouettes, showing the size
        and shape that the "A" must have at the start, middle and end of the animation.
      </p>
      <p>
        The animation of font-size must show a continuous change of the font size.
      </p>
      <p>
        The following animations must animate discretely: text-anchor, font-family,
        font-style, font-weight.
      </p>
      <p>
        The test passes if all of the above conditions are met.
      </p>
    </d:passCriteria>
  </d:SVGTestCase>
  <title id="test-title">$RCSfile: animate-elem-46-t.svg,v $</title>
  <defs>
    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
      <font-face-src>
        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
      </font-face-src>
    </font-face>
  </defs>
  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
    <defs>
      <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F" font-weight="700">
        <font-face-src>
          <font-face-uri xlink:href="../resources/SVGFreeSansBold.svg#ascii"/>
        </font-face-src>
      </font-face>
      <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F" font-style="italic">
        <font-face-src>
          <font-face-uri xlink:href="../resources/SVGFreeSansItalic.svg#ascii"/>
        </font-face-src>
      </font-face>
      <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F" font-weight="700" font-style="italic">
        <font-face-src>
          <font-face-uri xlink:href="../resources/SVGFreeSansBoldItalic.svg#ascii"/>
        </font-face-src>
      </font-face>
      <font-face font-family="FreeSerif" unicode-range="U+0-7F" font-weight="bold">
        <font-face-src>
          <font-face-uri xlink:href="../resources/FreeSerifBold.svg#FreeSerifBold"/>
        </font-face-src>
      </font-face>
    </defs>
    <g transform="translate(80, 80)">
      <g transform="translate(20,10)" text-anchor="end" font-size="14">
        <text x="5" y="15">text-anchor</text>
        <text x="5" y="50">font-size</text>
        <text x="5" y="85">font-family</text>
        <text x="5" y="120">font-style</text>
        <text x="5" y="155">font-weight</text>
      </g>

      <g id="type" transform="translate(90, -10)" text-anchor="middle" font-size="14">
        <text x="20" y="3">&lt;text&gt;</text>
        <text x="135" y="3">&lt;g&gt;</text>
        <text x="250" y="3">&lt;a&gt;</text>
      </g>

      <g transform="translate(80,5)" text-anchor="start" font-size="20" fill="rgb(204,0,102)">
        <g id="animateZero">
          <defs>
            <g id="animateZeroRef" font-size="30" font-weight="bold">
              <text x="0" y="20" fill="#aaa" text-anchor="end">A</text>
              <rect x="-2" y="18" width="4" height="4" fill="#aaa"/>
              <text x="0" y="20" fill="#aaa" text-anchor="middle" transform="translate(30,0)">A</text>
              <rect x="-2" y="18" width="4" height="4" fill="#aaa" transform="translate(30,0)"/>
              <text x="0" y="20" fill="#aaa" text-anchor="start" transform="translate(60,0)">A</text>
              <rect x="-2" y="18" width="4" height="4" fill="#aaa" transform="translate(60,0)"/>
              <rect x="-2" y="18" width="4" height="4">
                <animateTransform attributeName="transform" type="translate" values="0;30;60" dur="3s" fill="freeze" calcMode="discrete"/>
              </rect>
            </g>
          </defs>

          <use xlink:href="#animateZeroRef"/>
          <use xlink:href="#animateZeroRef" x="110"/>
          <use xlink:href="#animateZeroRef" x="220"/>

          <text id="textID_0" x="0" y="20" text-anchor="end" font-size="30" font-weight="bold">A</text>
          <animate xlink:href="#textID_0" attributeName="text-anchor" values="end;middle;start" dur="3s" fill="freeze"/>
          <animateTransform xlink:href="#textID_0" attributeName="transform" type="translate" values="0;30;60" dur="3s" fill="freeze" calcMode="discrete"/>

          <g transform="translate(110, 0)" text-anchor="end" font-size="30" font-weight="bold">
            <animate attributeName="text-anchor" values="end;middle;start" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </g>

          <a xlink:href="" transform="translate(220, 0)" text-anchor="end" font-size="30" font-weight="bold">
            <animate attributeName="text-anchor" values="end;middle;start" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </a>
        </g>

        <g id="animateOne" transform="translate(0,35)">
          <defs>
            <g id="animateOneRef" font-weight="bold" text-anchor="start">
              <text x="0" y="20" fill="#aaa" font-size="30">A</text>
              <text x="0" y="20" fill="#aaa" font-size="12" transform="translate(30,0)">A</text>
              <text x="0" y="20" fill="#aaa" font-size="30" transform="translate(60,0)">A</text>
            </g>
          </defs>

          <use xlink:href="#animateOneRef"/>
          <use xlink:href="#animateOneRef" x="110"/>
          <use xlink:href="#animateOneRef" x="220"/>

          <text id="textID_1" x="0" y="20" font-size="12" font-weight="bold">A</text>
          <animate xlink:href="#textID_1" attributeName="font-size" values="30;12;30" dur="3s" fill="freeze"/>
          <animateTransform xlink:href="#textID_1" attributeName="transform" type="translate" from="0" to="60" dur="3s" fill="freeze"/>

          <g transform="translate(110, 0)" font-size="12" font-weight="bold">
            <animate attributeName="font-size" values="30;12;30" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" from="0" to="60" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </g>

          <a xlink:href="" transform="translate(220,0)" font-size="12" font-weight="bold">
            <animate attributeName="font-size" values="30;12;30" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" from="0" to="60" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </a>
        </g>

        <g id="animateTwo" transform="translate(0,70)">
          <defs>
            <g id="animateTwoRef" font-weight="bold" font-size="30">
              <text x="0" y="20" fill="#aaa" font-family="SVGFreeSansASCII,sans-serif">A </text>
              <text x="30" y="20" fill="#aaa" font-family="FreeSerif,serif">A</text>
              <text x="60" y="20" font-size="30" fill="#aaa" font-family="SVGFreeSansASCII,sans-serif">A</text>
            </g>
          </defs>
          <use xlink:href="#animateTwoRef"/>
          <use xlink:href="#animateTwoRef" x="110"/>
          <use xlink:href="#animateTwoRef" x="220"/>

          <text id="textID_2" x="0" y="20" font-weight="bold" font-size="30">A</text>
          <animate xlink:href="#textID_2" attributeName="font-family" values="SVGFreeSansASCII,sans-serif;FreeSerif,serif;SVGFreeSansASCII,sans-serif" dur="3s" fill="freeze"/>
          <animateTransform xlink:href="#textID_2" attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze"/>

          <g font-weight="bold" font-size="30" transform="translate(110,0)">
            <animate attributeName="font-family" values="SVGFreeSansASCII,sans-serif;FreeSerif,serif;SVGFreeSansASCII,sans-serif" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </g>

          <a xlink:href="" font-weight="bold" font-size="30" transform="translate(220,0)">
            <animate attributeName="font-family" values="SVGFreeSansASCII,sans-serif;FreeSerif,serif;SVGFreeSansASCII,sans-serif" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </a>
        </g>

        <g id="animateThree" transform="translate(0,105)">
          <defs>
            <g id="animateThreeRef" font-size="30" font-weight="bold">
              <text x="0" y="20" font-size="30" fill="#aaa" font-style="normal">A</text>
              <text x="30" y="20" font-size="30" fill="#aaa" font-style="italic">A</text>
              <text x="60" y="20" font-size="30" fill="#aaa" font-style="normal">A</text>
            </g>
          </defs>
          <use xlink:href="#animateThreeRef"/>
          <use xlink:href="#animateThreeRef" x="110"/>
          <use xlink:href="#animateThreeRef" x="220"/>

          <text id="textID_3" x="0" y="20" font-size="30" font-weight="bold">A</text>
          <animate xlink:href="#textID_3" attributeName="font-style" values="normal;italic;normal" dur="3s" fill="freeze"/>
          <animateTransform xlink:href="#textID_3" attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze"/>

          <g transform="translate(110,0)" font-size="30" font-weight="bold">
            <animate attributeName="font-style" values="normal;italic;normal" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20" font-size="30">A</text>
          </g>

          <a xlink:href="" transform="translate(220,0)" font-size="30" font-weight="bold">
            <animate attributeName="font-style" values="normal;italic;normal" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20" font-size="30">A</text>
          </a>

        </g>

        <g id="animateFour" transform="translate(0,140)">
          <defs>
            <g id="animateFourRef" font-size="30">
              <text x="0" y="20" fill="#aaa" font-weight="bold">A</text>
              <text x="30" y="20" fill="#aaa" font-weight="normal">A</text>
              <text x="60" y="20" fill="#aaa" font-weight="bold">A</text>
            </g>
          </defs>

          <use xlink:href="#animateFourRef"/>
          <use xlink:href="#animateFourRef" x="110"/>
          <use xlink:href="#animateFourRef" x="220"/>

          <text id="textID_4" x="0" y="20" font-size="30">A</text>
          <animate xlink:href="#textID_4" attributeName="font-weight" values="bold;normal;bold" calcMode="discrete" dur="3s" fill="freeze"/>
          <animateTransform xlink:href="#textID_4" attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze"/>

          <g transform="translate(110,0)" font-size="30">
            <animate attributeName="font-weight" values="bold;normal;bold" calcMode="discrete" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </g>

          <a xlink:href="" transform="translate(220,0)" font-size="30">
            <animate attributeName="font-weight" values="bold;normal;bold" calcMode="discrete" dur="3s" fill="freeze"/>
            <animateTransform attributeName="transform" type="translate" values="0;30;60" calcMode="discrete" dur="3s" fill="freeze" additive="sum"/>
            <text x="0" y="20">A</text>
          </a>
        </g>
      </g>
    </g>
  </g>
  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
  </g>
  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
  <!-- comment out this watermark once the test is approved -->
  <!--<g id="draft-watermark">
    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
  </g>-->
</svg>