From my understanding, the compound selector allows selecting a pseudo element. So I’m wondering if we can select a shadow part of a slotted custom element?
::slotted(my-element::part(my-shadow-part)) {
/* ... */
}
I’ve tried this in Chrome and Firefox and it doesn’t work. I’ve also tried the selector as if ::part was tree abiding:
::slotted(my-element)::part(my-shadow-part)
And unsurprisingly it didn’t work either.
My question is: Is the former example a bug in the implementation or is the ::part pseudo element not accessible with ::slotted by design?