Skip to content

Selectors inside :not() not correctly parsed #360

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

Open
MichaelRoosz opened this issue Apr 1, 2022 · 2 comments
Open

Selectors inside :not() not correctly parsed #360

MichaelRoosz opened this issue Apr 1, 2022 · 2 comments

Comments

@MichaelRoosz
Copy link

.test:not(.a, .b) { display: none; }

will be parsed as:

Sabberworm\CSS\RuleSet\DeclarationBlock -> getSelectors():
  Sabberworm\CSS\Property\Selector '.test:not(.a',
  Sabberworm\CSS\Property\Selector '.b)'
@westonruter
Copy link
Collaborator

This has come up before. See #138

@ttk
Copy link

ttk commented Dec 8, 2022

Also affects .test:is(.a, .b) { display: none; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants