Re: [csswg-drafts] [css-animations-2] calling `cancel()` on a CSS Animation should prevent further changes made from CSS to apply (#13503)

To answer your question @birtles, WebKit does have a such a condition when canceling from style and disassociating from the owning element. In [`CSSAnimation::syncPropertiesWithBackingAnimation()`](https://github.com/WebKit/WebKit/blob/738293fc7cd01437ccd95ebd21e1ba13db578704/Source/WebCore/animation/CSSAnimation.cpp#L77):

```
    // If we have been disassociated from our original owning element,
    // we should no longer sync any of the `animation-*` CSS properties.
    if (!owningElement())
        return;
```

But merely calling `cancel()` does not entail disassociating with the owning element, so this check does not apply.

-- 
GitHub Notification of comment by graouts
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13503#issuecomment-3919472198 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 18 February 2026 08:46:27 UTC