- From: Jake Archibald via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Jan 2024 15:25:33 +0000
- To: public-css-archive@w3.org
In case the above explain it well, here's another description: `updateCallbackDone` resolve when the update callback is done. If the update callback fails (as in, the callback returns a rejected promise), `updateCallbackDone` rejects. This is for cases where you don't care about the success/failure of the transition, you just care about the success/failure of the DOM change. For example, [when intercepting a navigation using the navigation API](https://developer.chrome.com/docs/web-platform/navigation-api#intercepting), the handler returns a promise relating to the success/failure of the navigation. A failed transition isn't a failed navigation, so if you're wrapping your DOM change in `startViewTransition`, then `updateCallbackDone` gives you information pertinent to the navigation API. -- GitHub Notification of comment by jakearchibald Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9762#issuecomment-1877282410 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 January 2024 15:25:35 UTC