summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/smil/anim-class-01.svg
blob: 4fe4faab21351392b004bc16e0f747d92438d97e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     class="reftest-wait" onload="setTimeAndSnapshot(1, true)">
  <title>Test animation of the class attribute on "rect" elements</title>
  <script xlink:href="smil-util.js" type="text/javascript"/>
  <style type="text/css">

    .start {visibility: hidden; fill: red; }
    .midway {visibility: visible; fill: red; }
    .final {fill: lime; }

  </style>

  <rect width="100%" height="100%" fill="red"/>
  <rect width="100%" height="100%">
    <animate attributeName="class" attributeType="XML"
         from="midway" to="final midway" begin="0.5s" dur="1s" fill="freeze"/>
  </rect>
</svg>