blob: 56087213a45edd476a08ed939cc16b08f514cc7b [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];
const effect = animation.effect;
effect.target = null;
effect.getKeyframes();
</script>
</body>