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

Here's an example of the case @noamr is talking about:

Imagine a list of items, where the first is a bigger "main" one. The list is reordered, and the developer wants to create a transition between them.

The developer uses `view-transition-name: auto` because they read in the Safari release notes that it's great and [lets the browser figure out the details](https://webkit.org/blog/16301/webkit-features-in-safari-18-2/#view-transitions:~:text=let%20the%20browser%20figure%20out%20the%20details). It works!

Then, another team wants to create a skip-link to the main item, so they add `id="main-item"` to the first item in the list, and ensure that the ID is 'moved' to the new first item when the list is reorganised. As far as this team is aware, IDs are unrelated to view transitions. They haven't seen anything that suggests transitions are tied to IDs in the codebase.

The transition is now broken.

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


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

Received on Wednesday, 18 December 2024 16:51:46 UTC