Open tobi-or-not-tobi opened 2 years ago
When a pseudo selector is used in an exclusion, i.e. :not(:hover), it should not be used to generate a pseudo state class.
:not(:hover)
We've seen this in various rules:
:not(:hover) { ... } foo > bar :not(:hover) { ... } foo > bar :not(item:hover) { ... }
: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.
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.