[csswg-drafts] [css-view-transitions-2] view-transition-name: auto when matching id should namespace (#11614)

vmpstr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-2] view-transition-name: auto when matching id should namespace ==
We have a `view-transition-name: auto` that can use the `id` attribute from the element as the view transition name. (https://www.w3.org/TR/css-view-transitions-2/#auto-vt-name)

I think it can be confusing if, for example, in the old state we match `id=foo` and on the other side that pairs with css `view-transition-name: foo`. 

The proposal is to "namespace" id matching. Basically `id=foo` would only match with `id=foo` and not with `view-transition-name: foo`. Or, in other words, names generated by the `id` attribute can only match elements that have names that are also generated by the `id` attribute.

@nt1m @noamr fyi

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11614 using your GitHub account


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

Received on Thursday, 30 January 2025 18:16:41 UTC