Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-scoping] Allow sibling combinators for ::slotted elements #5094

Open
GeorgeTailor opened this issue May 20, 2020 · 0 comments
Open

[css-scoping] Allow sibling combinators for ::slotted elements #5094

GeorgeTailor opened this issue May 20, 2020 · 0 comments
Labels
css-scoping-1 Current Work

Comments

@GeorgeTailor
Copy link

I am not sure if it's a feature request or a bug as spec 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-scoping-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants