Re: [csswg-drafts] [css-shared-element-transitions-1] Pseudo-element selectors for shared element transitions (#7743)

>> is it possible to have some "magic" element that the UA can add but that the developers can't
>
> I think we can explain this via the cascade. The image stuff only works when it's in this particular shadow DOM.

Yeah, magic is the way to go. They have to be in the proper tree and the proper structure, and we can determine that via magic (UA-only inherited CSS properties, for example, which is set on the elements via UA stylesheet and checked via internal code).

> And it looks like you can't target an element in a shadow DOM using the ::part selector with pseudoElement option, as opposed to selectors which target pseudo-elements. This [example](https://jsbin.com/jinakoyewo/edit?html,output) doesn't work in Chrome/Firefox/Safari.

This is probably just a browser bug? The spec [mentions ::part()](https://drafts.csswg.org/web-animations-1/#keyframe-effects) when discussing target elements.

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


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

Received on Thursday, 15 September 2022 18:43:38 UTC