Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /web-animations/crashtests/element-animate-position.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>element.animate with position property should not crash</title>
<iframe id="iframe"></iframe>
<div id="div1"></div>
<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);
requestAnimationFrame(() => {
document.documentElement.classList.remove('test-wait');
});
</script>
</html>