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

I would prefer `auto` to behave like the suggested `element-uuid()`, in which it generates a unique ident for the element instead of trying to read the `[id]` and/or other attributes. Getting the computed value would return that generated ident. 

(This might be a stretch but preferably the generated ident should start with `auto-` to allow script to detect that it was generated)

To get reuse `[id]` _(or any other attribute, except the ones rejected by `attr()`)_ as the `view-transition-name`, authors should use the `ident(attr())` approach _(originally #9141)_, which would compliment this `auto` approach. That `ident(attr())` approach would work not only for View Transitions, but for any other property that accepts an ident.

This two-fold approach prevents the potential collision issue detailed [earlier in this thread](https://github.com/w3c/csswg-drafts/issues/8320#issuecomment-2301779345) and also allows id-based naming which was also requested before.

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


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

Received on Wednesday, 11 September 2024 09:20:04 UTC