| <script src="../resources/ui-helper.js"></script> |
| testRunner.waitUntilDone(); |
| // Start an animation that lasts a day. |
| const duration = 24 * 60 * 60 * 1000; |
| const target = document.getElementById("target"); |
| const animation = target.animate({ translate: "200px" }, duration); |
| animation.currentTime = duration / 2; |
| // Wait until the animation has been applied. |
| await UIHelper.ensureStablePresentationUpdate(); |
| // Change the transform property. |
| target.style.transform = "translateY(100px)"; |
| // Wait until that change was made. |
| await UIHelper.ensureStablePresentationUpdate(); |