-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Fix selector-max-compound-selectors
with ignoreSelectors
for class selectors
#7559
Conversation
…s selectors Follow-up to PR #7544 See #7544 (comment) Note that this change doesn't need any changelog item since the `ignoreSelectors` option is unreleased.
|
You can ignore my review if you are in a hurry. |
You could add Line 5 in 6f24e26
|
Don't mind the mention in the changelog since I'll release it. 😅 |
Follow-up to PR #7544
See #7544 (comment)
Note that this change doesn't need any changelog item since the
ignoreSelectors
option is unreleased.To fix the bug mentioned on #7544 (comment), this PR slightly changes the algorithm.
New algorithm:
ignoreSelectors
in a selector at once, e.g..foo .bar > .ignored
➡️.foo .bar >
.foo .bar > .ignored .baz
➡️.foo .bar > .baz
.ignored > .foo .bar
➡️> .foo .bar
.foo .bar
.foo .bar > .baz
.foo .bar
{compound_count} = {combinator_count} + 1
.foo .bar
➡️2
.foo .bar > .baz
➡️3
.foo .bar
➡️2