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

> The reason I don't like `view-transition-name: auto` for this behaviour is it only works in same-document transitions

Maybe that’s OK? I don’t think we could every make an _auto_ work for cross-document

> `match-element()` seems fine.

This gives me another idea: if it’s a function then it can optionally take an argument … which could totally be an attribute name – i.e. when using `match-element(id)` it would return the `[id]` value. If no `[id]` exists, you get `none`.

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


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

Received on Wednesday, 11 December 2024 15:43:12 UTC