Open
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.
Metadata
Metadata
Assignees
Type
Projects
Status
Ready to Implement