summaryrefslogtreecommitdiff
path: root/layout/reftests/svg/smil/syncbase/sandwich-priority-1.svg
blob: 9d99fa0829f3123608f0dee2f3750c5ab2f39c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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.

    Normally, the second element would win because it appears later in the
    document, but since the first element is dependent on the second, it should
    apply on top of the second.
   -->
  <rect width="100" height="100" fill="orange">
    <set attributeName="fill" to="green" begin="a.begin"/>
    <set attributeName="fill" to="red"   begin="0s" id="a"/>
  </rect>
</svg>