CSS: How to target ::slotted siblings in Shadow DOM root?
问题 I know that the spec currently only allows compound selectors for ::slotted, i.e. ::slotted(my-first + my-second) is not allowed, but should something like this be working? ::slotted(x-first) + ::slotted(x-second) { /* css */ } Is there any way to target slotted siblings (other than with global css)? And if not, where would I file such a request? Thanks. 回答1: Sure you can select siblings of slots / slotted . The thing you can not do is select a element which has been slotted and is not a top