summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api/element-animate-position-crash.html
blob: be5fc2a773ee2b67b7ac8ac0fa40aaac8a390e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<iframe id="iframe"></iframe>
<div id="div1"></div>
This test passes if it does not crash.
<div id="div2"></div>
<div id="div3"></div>
<embed id="embed"></embed>
<script>
try{embed.appendChild(null);}catch(e){}
iframe.animate([{"position":"fixed"}, {"position":"static"}], {duration: 1, fill: 'forwards'});
div3.appendChild(div1);
if (window.testRunner) {
  testRunner.waitUntilDone();
  testRunner.dumpAsText();
  requestAnimationFrame(function() {
    document.documentElement.textContent = 'PASS';
    testRunner.notifyDone();
  });
}
</script>