summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/smil/transform/paced-1.svg
blob: 2e8238b3cbdf026cfc9ebbb58c62bce56e6ed512 (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
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     class="reftest-wait"
     onload="setTimeAndSnapshot(101, true)">
  <script xlink:href="../smil-util.js" type="text/javascript"/>
  <defs>
    <g id="smiley">
      <circle fill="yellow" stroke="black" stroke-width="2" cx="0" cy="0"
        r="40"/>
      <circle fill="white" stroke="black" stroke-width="1" cx="-14" cy="-14"
        r="14"/>
      <circle fill="white" stroke="black" stroke-width="1" cx="14" cy="-14"
        r="14"/>
      <circle cx="-10" cy="-14" r="4"/>
      <circle cx="10" cy="-14" r="4"/>
      <path d="m-11 14a13,13 0 0,0 22,0" fill="none" stroke="black"/>
    </g>
  </defs>
  <!-- translation -->
  <g transform="translate(0 50)">
    <use xlink:href="#smiley">
      <animateTransform attributeName="transform" attributeType="XML"
        type="translate" fill="freeze" begin="100s" dur="2s" calcMode="paced"
        values="-5 -10; 35 20; 95 -60"/>
    </use>
  </g>
  <!-- rotation -->
  <g transform="translate(150 50) rotate(-90)">
    <use xlink:href="#smiley">
      <animateTransform attributeName="transform" attributeType="XML"
        type="rotate" fill="freeze" begin="100s" dur="2s" calcMode="paced"
        values="20 10 10; 40 -15 25; 160 21 -35"/>
    </use>
  </g>
  <!-- skewY -->
  <g transform="translate(250 50) skewY(-30)">
    <use xlink:href="#smiley">
      <animateTransform attributeName="transform" attributeType="XML"
        type="skewY" fill="freeze" begin="100s" dur="2s" calcMode="paced"
        values="10; 40; 50"/>
    </use>
  </g>
  <!-- scale -->
  <g transform="translate(50 150) scale(0.5)">
    <use xlink:href="#smiley">
      <animateTransform attributeName="transform" attributeType="XML"
        type="scale" fill="freeze" begin="100s" dur="2s" calcMode="paced"
        values="-4 -2.5; 4 3.5; 8 0.5"/>
    </use>
  </g>
  <!-- to-animation

       You can't have to-animation with a paced calcMode. This test should just
       produce regular to-animation without any assertions. This is a white-box
       test.
   -->
  <g transform="translate(100 150)">
    <use xlink:href="#smiley">
      <animateTransform attributeName="transform" attributeType="XML"
        type="translate" fill="freeze" begin="100s" dur="2s" calcMode="paced"
        to="100"/>
    </use>
  </g>
</svg>