| <title>Crash setting a CSS Animation to "none" after setting its effect to null</title> |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| const target = document.body.appendChild(document.createElement("div")); |
| target.style.animation = "animation 1s"; |
| const animations = target.getAnimations(); |
| assert_equals(animations.length, 1, "The target element has one animation."); |
| animations[0].effect = null; |
| target.style.animation = "none"; |
| }, "Setting a CSS Animation to 'none' after setting its effect to null does not crash."); |