| to { margin-left: 100px } |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| const target = document.body.appendChild(document.createElement("div")); |
| target.style.animation = "animation 10ms forwards"; |
| target.addEventListener("animationend", () => { |
| assert_equals(getComputedStyle(target).marginLeft, "100px", "The target element has style values from the final keyframe of its animation."); |
| target.style.animation = "none"; |
| assert_equals(getComputedStyle(target).marginLeft, "0px", "The target element has no animation after setting 'animation-name: none'."); |
| }, "Setting 'animation-name: none' after a 'fill: forwards' animation has completed reverts to the unanimated style."); |