Re: [csswg-drafts] [css-view-transitions-2] Ignore offscreen elements from participating in transitions (#8282)

@vmpstr trying to tease the API contact you're proposing. The browser is free to not generate pseudo-elements for a `view-transition-name` in the old DOM if:

- The named element is offscreen in the old DOM.
- There is no corresponding name in the new DOM *or* the named element in the new DOM is also offscreen on first render.

For the case where a name is only in the new DOM, the browser can optimize out its rendering as usual since we're producing live snapshots.

Not generating pseudo-elements is the web observable difference here. So an author can't bring the pseudo-element onscreen only during the transition. Internally an engine can optimize by caching any representation of the old DOM until the new DOM is ready.

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


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

Received on Thursday, 11 April 2024 19:09:10 UTC