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

Pseudo classes are generated when pseudo is excluded #31

Open
tobi-or-not-tobi opened this issue May 10, 2022 · 0 comments
Open

Pseudo classes are generated when pseudo is excluded #31

tobi-or-not-tobi opened this issue May 10, 2022 · 0 comments

Comments

@tobi-or-not-tobi
Copy link
Contributor

When a pseudo selector is used in an exclusion, i.e. :not(:hover), it should not be used to generate a pseudo state class.

We've seen this in various rules:

:not(:hover) { ... }
foo > bar :not(:hover) { ... }
foo > bar :not(item:hover) { ... }

The regex to match those pseudo's should be improved to avoid the excluded pseudo's.

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

1 participant