summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/smil/syncbase/sandwich-priority-5.svg
blob: 05d82ffdf13df95959d9fc8ee36a69929c7de8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     class="reftest-wait"
     onload="setTimeAndSnapshot(2, true)">
  <script xlink:href="../smil-util.js" type="text/javascript"/>
  <!--
    Test of animation sandwich priority based on syncbase dependencies.

    This case includes many cycles.

    c is dependent on a.
    b is dependent on c.
    So b is the most dependent and should be on top.
   -->
  <rect width="100" height="100" fill="purple">
    <set attributeName="fill" id="c" to="orange" begin="a.begin; b.begin"/>
    <set attributeName="fill" id="b" to="green"  begin="c.begin; b.begin"/>
    <set attributeName="fill" id="a" to="red"    begin="1s; b.begin; c.begin"/>
  </rect>
</svg>