Re: [csswg-drafts] [css-view-transitions-2] Allow an auto-generated `view-transition-name` that doesn't default to ID (#10995)

> I think the design goal of view transitions should be to minimise the difference between MPA and SPA as much as possible.

I don't think that's an acceptable design goal. The design goal should be to make this feature work really well for MPA and SPA, and make it possible for authors to easily write transitions that work in both. It shouldn't preclude us designing features for other purposes, such as making the decorative use of view transitions within a page easier to author.

The web design world does not revolve around SPA/MPA frameworks. Sometimes web pages are just web pages, and sometimes view transitions is a handy tool to use for visual transitions, alongside CSS Animations and Transitions.

> `SPA ? "match-element" : "attr(id ident)"`

I disagree with this. An ID is something explicitly put in by the author, so if it exists, it should take precedence. It's also quite reasonable for an author to tear down part of the DOM and rebuild it, even in an SPA; in that case `match-element` won't be useful.

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


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

Received on Tuesday, 5 November 2024 20:16:50 UTC