- From: Bramus via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Jun 2024 19:34:33 +0000
- To: public-css-archive@w3.org
I prefer `ViewTransition#getAnimations()` over `document.documentElement.getAnimations({ pseudo: "::view-transition", subtree: true });` as with the former you can pass the `ViewTransition` object into any method and it can get the animations from it. With the latter you’d also need to pass in the element on which you triggered the VT. (Which reminds me: we might also need a `ViewTransition#getTransitionRoot()` – or a readonly property that exposes it – once we have scoped transitions) -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9908#issuecomment-2161474268 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 19:34:34 UTC