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

> I think it would add more complexity than benefit. It might be best to say that auto is for same-document only

+1 to this. I don't think we should be mixing how an element's name is decided (ID vs element identity) behind a single keyword. 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. Both id and element identity based naming are valid but they should be use separate and obviously named keywords.

The ID based one should be doable using `attr()` so Idk if we need another keyword for it. But I won't be opposed to that. My main opposition is to lumping both naming techniques behind the same keyword and switching based on whether id is available.

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


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

Received on Thursday, 25 July 2024 18:20:02 UTC