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

> > You might have auto without ID on multiple elements, and now instead of having to give all of them explicit view-transition-name the author would need to set explicit IDs.
> > It would be annoying if an author used "auto" for element identity based naming, and another teammate adds an id for a completely unrelated use-case which has a side effect of changing VT naming.
> 
> I'm not sure I understand the problem. What would break in these cases?

Let's say you have an element with `view-transition-name: auto`. You now changed its ID to `hero`. If you had another element with `view-transition-name: hero` explicitly, the view transition will now be invalid. It's not a huge thing though.



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


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

Received on Wednesday, 21 August 2024 11:03:38 UTC