[csswg-drafts] [css-scoping] Allow sibling combinators for ::slotted elements (#5094)

GeorgeTailor has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scoping] Allow sibling combinators for ::slotted elements ==
I am not sure if it's a feature request or a bug as [spec](https://drafts.csswg.org/css-scoping/#slotted-pseudo) does not cover this case.
Anyway, the proposal is to allow sibling combinators (+, ~) for ::slotted elements, for example:
```
::slotted(input[type="checkbox"]:disabled) + ::slotted(label) {
  cursor: not-allowed;
}
```
I know that child and descendant combinators are not allowed due to performance reasons, but sibling combinator does not seem that it would introduce a lot of performance overhead.
Since we already can apply style to all slotted elements, why not allow sibling combinators as well?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5094 using your GitHub account

Received on Wednesday, 20 May 2020 14:56:46 UTC