Re: [csswg-drafts] [css-view-transition-2] `view-transition-class` and tree-scoping (#10529)

Thinking about this again, `view-transition-class` is not exactly a name-reference, but rather a name by itself, and the reference is in the pseudo-elements. It's more equivalent to container queries where the query has to be below the definition of the name.

I think the right approach here would be that `view-transition-class` is a scoped name, and is read from the same scope as the `view-transition-name`.

The only "quirk" about this is that the shadow DOM can define `view-transition-class: none !important` or some such and make a `::part` not receive a `view-transition-class`. Perhaps that's OK.

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


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

Received on Sunday, 28 July 2024 19:28:09 UTC