Skip to content

Fix selector-max-specificity false positives with ignoreSelectors option for of <selector> syntax#7475

Merged
ybiquitous merged 2 commits intomainfrom
issue-6615
Jan 20, 2024
Merged

Fix selector-max-specificity false positives with ignoreSelectors option for of <selector> syntax#7475
ybiquitous merged 2 commits intomainfrom
issue-6615

Conversation

@ybiquitous
Copy link
Copy Markdown
Member

@ybiquitous ybiquitous commented Jan 20, 2024

Config:

{"ignoreSelectors": [".foo"]}

CSS code:

:nth-child(even of .foo) {}

/* ↓ Calculates specificity ignoring 'of .foo' in `ignoreSelectors` */
:nth-child(even) {}

Which issue, if any, is this issue related to?

Closes #6615

Is there anything in the PR that needs further explanation?

No, it's self-explanatory.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix selector-max-specificity false positives with ignoreSelectors option for of <selector> syntax

3 participants