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

> Maybe an improvement could be `SPA ? "match-element" : "attr(id ident)"`.

Deciding this _automagically_ for authors based on Same-Document VT being used or not would not work on pages that are mainly MPA but also do some SPA things. Things of sites that SPA-ify their MPA with the Navigation API when available. Would be very surprising to suddenly no longer be able to target the `div#hero` through `::view-transition-*(hero)` because of how the VT was triggered.

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


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

Received on Saturday, 2 November 2024 20:47:20 UTC