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

> To be clear, I'm happy with spec'ing and shipping `match-element`, but I'm not sure about supporting `attr(id, match-element)` because it would mean `match-element` generates an actual observable name, or alternatively that `attr` would have a special behavior as a `view-transition-name` value.

+1 on making `match-element` not observable.

> I wonder though if in the future we'd want something like the `match-element` behavior outside of view transitions, in which case just having this as a CSS primitive that produces idents would not be that bad.

The solution here would be the proposed `ident()` function (See https://github.com/w3c/csswg-drafts/issues/9141) which could take an argument that auto-generates an observable ident.

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


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

Received on Wednesday, 20 November 2024 22:58:19 UTC