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/partially-overlapping-animations-one-not-current-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>CSS Test (Animations): Reparenting an element with a web animation on the compositor</title>
<meta name="assert" content="This should not crash.">
<script>
window.onload = function(){
let div = document.querySelector("div");
let a1 = div.animate([{"transform": "translateX(10px)", "opacity": "0.4"}], { duration: 1000 });
a1.reverse();
let a2 = div.animate([{"transform": "translateY(10px)"}], { duration: 1000 });
}
</script>
<div>X</div>