Re: [csswg-drafts] [css-view-transitions-2] view-transition-name determined by element (#8320)

> It seems View Transitions was designed with the expectation that websites are JavaScript first

This is only the case for Same-Document View Transitions. For Cross-Document View Transitions JavaScript is not mandatory.

(And, in the future, there could always be worked on defining some non-JS based triggers for Same-Document View Transitions)

> This would be a much better solution: `.card { view-transition-name: auto; }`

While that could solve _some_ Same-Document View Transitions, this solution won’t work for:

- Cross-Document View Transitions.
- Frameworks that trash and re-add notes as they see fit.

This is also discussed earlier in this thread.

Also see the discussions in https://github.com/w3c/csswg-drafts/issues/9639 and https://github.com/w3c/csswg-drafts/issues/9141 which are concerned with solving this naming problem.


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


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

Received on Wednesday, 27 March 2024 15:41:04 UTC