Re: [csswg-drafts] [css-view-transitions-2] Timing for checking at-rule (#9867)

Summary from offline conversation, there's stages in the navigation's lifecycle where we could read the opt-in: when the navigation is initiated and when we have the final response (the navigation is ready to be committed). Ideally we'd use the latter timing to have the most up-to-date preference from the author. For example, if a media query like `prefers-reduced-motion` changes which opts-out of transitions that should apply.

We have to check the opt-in at the first spot for perf reasons, so the reasonable option would be to keep both. There must be an opt-in at both stages of the navigation for a transition to happen.

**Proposed Resolution**: A navigation has a transition if there is a cross-document opt-in when the navigation is initiated and when its ready to commit.

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


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

Received on Monday, 5 February 2024 19:24:33 UTC