summaryrefslogtreecommitdiff
path: root/layout/reftests/svg/smil/syncbase/sandwich-priority-3.svg
blob: f8ba708d750dba6ff1656728b5550998fe158ee0 (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 chain goes through end and begin specs but SMIL seems to imply that
    it's only when one element's begin time is dependent on another's begin time
    that it affects the chaining because it should act as if the time base begun
    before the the dependent.  So in this case 'c' is (indirectly) dependent on
    'a's end time and so shouldn't be given the higher priority.
   -->
  <rect width="100" height="100" fill="orange">
    <set attributeName="fill" to="red"   begin="b.begin-1s"  id="c"/>
    <set attributeName="x"    to="0"     begin="a.end-1s"    id="b"/>
    <set attributeName="fill" to="green" begin="1s" dur="2s" id="a"/>
  </rect>
</svg>