summaryrefslogtreecommitdiffstats
path: root/dom/smil/crashtests/554202-1.svg
blob: f3d692ca029a7cc7f7533f68c5847fa0409d2aa2 (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
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg">

<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="foo">
    <content>
      <animate xmlns="http://www.w3.org/2000/svg" begin="a.begin">
        <children xmlns="http://www.mozilla.org/xbl"/>
      </animate>
    </content>
  </binding>
</bindings>

<animate id="a" begin="b.begin; 3s"/>
<animate id="b" begin="a.begin"/>

<script type="text/javascript">

function boom()
{
  document.documentElement.pauseAnimations();
  document.documentElement.setCurrentTime(0);
  document.getElementById('a').beginElementAt(1);
  document.documentElement.style.MozBinding = 'url(#foo)';
}

window.addEventListener("load", boom, false);

</script>

</svg>