blob: d980d35628e4aa39a1834035d57e47af0cd1cbb7 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] -->
<body>
<style>
@keyframes anim {
from { margin-left: 0 }
to { margin-left: 100px }
}
</style>
<script>
const target = document.body.appendChild(document.createElement("div"));
target.style.animation = "anim 1s";
const animation = target.getAnimations()[0];
animation.effect = new KeyframeEffect(animation.effect);
animation.effect.target = document.createElement("div");
target.style.animation = "none";
target.getAnimations();
target.remove();
</script>
</body>