W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

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

From: Yuriy Kravets via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 May 2020 14:56:45 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-621830865-1589986604-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:07 UTC