You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in all browsers, within a shadow root, a selector such as :host::part(something)will select parts within that same shadow root. I’m curious if this is intentional as I cannot tell from the spec that the non-functional :host pseudo-class can be a compound selector like this. Admittedly, this is a nicer API than using an attribute selector, so I am happy if that’s the case. Further, in Firefox, a selector like ::part(something) on its own within a shadow root can select parts within the same shadow root. This seems maybe a bit problematic since then it could select parts within two shadow roots at the same time (e.g. a nested shadow root as well).