Re: [csswg-drafts] [view-transitions-2] Add method to get all animations of a ViewTransition object (#9908)

> `document.documentElement.getAnimations` would make this simpler and also work with scoped transitions. Does that suffice?

This doesn’t work because the result of this doesn’t include the animations attached to the pseudos. For `HTMLElement.geAnimations()` to return anything usable here you’d need to get the animations from the subtree by calling `document.documentElement.getAnimations({ subtree: true });`.

However, that way you would get you _all_ animations from the _entire_ subtree and you’d to manually check things again.

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


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

Received on Tuesday, 11 June 2024 08:26:14 UTC