- From: Claudia Meadows via GitHub <sysbot+gh@w3.org>
- Date: Tue, 06 May 2025 19:15:35 +0000
- To: public-css-archive@w3.org
> #9400 is also a relevant discussion to this. > I do see how the async design of the API makes it difficult to integrate with sync APIs like popstate, and others like popover close events. For what it's worth, we'd be able to cope with this by conditionally exposing an `m.redraw.viewTransition()` (returning the `ViewTransition` instance) and just exposing a global router option to use it if it's available. If anything, it's simpler (and less leaky) for a renderer to integrate the current API into its scheduler. Renderers need to potentially call `cancelAnimationFrame` anyways to avoid double-redrawing, so unless you do #9400, this somewhat needs framework integration in practice anyways. As an example, consider [our (relatively compact) redraw scheduler](https://github.com/MithrilJS/mithril.js/blob/67d4dfb12eef211d03d901fae5222b06769f2e90/api/mount-redraw.js) - it's pretty obvious how such a method would be implemented. -- GitHub Notification of comment by dead-claudia Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12125#issuecomment-2855651725 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 6 May 2025 19:15:36 UTC