summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/smil/syncbase/sandwich-priority-7.svg
blob: db72072a752b2d0c7ca6995804c862b3f57a6d42 (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
<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.

    Test for true dependency checking.

    We construct a tree as follows:

         b-c
      a<
         d

    If we're doing naive dependency checking that only considers the depth of
    a dependency in the tree we'll end up saying that 'c' is dependent on 'd'
    but it's not.
   -->
  <rect width="100" height="100" fill="orange">
    <set attributeName="fill" to="yellow" begin="1s"      dur="2s" id="a"/>
    <set attributeName="fill" to="purple" begin="a.begin" dur="2s" id="b"/>
    <set attributeName="fill" to="red"    begin="b.begin" dur="2s" id="c"/>
    <set attributeName="fill" to="green"  begin="a.begin" dur="2s" id="d"/>
  </rect>
</svg>