-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionfeature
Description
Rule details
Disallow unmatchable An+B selectors.
What type of rule is this?
Warns about a potential problem
Example code
a:nth-child(0n+0) {}
/*↑ ↑
* This unmatchable An+B selector */
Prior Art
selector-anb-no-unmatchable: https://stylelint.io/user-guide/rules/selector-anb-no-unmatchable/
Participation
- I am willing to submit a pull request to implement this rule.
Additional comments
An+B selectors are one-indexed. Selectors that always evaluate to 0 will not match any elements.
Gombek7
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionfeature
Type
Projects
Status
Ready to Implement