- From: vmpstr via GitHub <sysbot+gh@w3.org>
- Date: Fri, 14 Oct 2022 14:43:34 +0000
- To: public-css-archive@w3.org
I think one of the problems with starting the transition as soon as we call createDocumentTransition is that it doesn't lend many opportunities for script to register for promise observations: ```js async function f() { let t = document.createDocumentTransition(...); t.ready.then(() => { /* synchronize my animation with the document one */ }); } ``` Could the ready promise be resolved already by the time we say `.then`? What I have to yield for some reason between create transition and ready.then? It feels similar to something like ```js img.src = "..."; img.onload = () => { ... } ``` which as I understand it can cause us to miss onload, and the correct thing (`onload` before `src`) in the document transition world would not be possible -- GitHub Notification of comment by vmpstr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7828#issuecomment-1279105133 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 October 2022 14:43:35 UTC