Skip to content
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 false positives for :autofill in selector-pseudo-class-no-unknown #5171

Merged
merged 1 commit into from Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/reference/keywordSets.js
Expand Up @@ -160,7 +160,7 @@ keywordSets.levelOneAndTwoPseudoElements = new Set([
]);

// These are the ones that require double-colon notation
keywordSets.levelThreePseudoElements = new Set([
keywordSets.levelThreeAndUpPseudoElements = new Set([
'before',
'after',
'first-line',
Expand Down Expand Up @@ -206,7 +206,7 @@ keywordSets.vendorSpecificPseudoElements = new Set([

keywordSets.pseudoElements = uniteSets(
keywordSets.levelOneAndTwoPseudoElements,
keywordSets.levelThreePseudoElements,
keywordSets.levelThreeAndUpPseudoElements,
keywordSets.vendorSpecificPseudoElements,
keywordSets.shadowTreePseudoElements,
);
Expand All @@ -229,8 +229,13 @@ keywordSets.aNPlusBOfSNotationPseudoClasses = new Set(['nth-child', 'nth-last-ch
keywordSets.otherPseudoClasses = new Set([
'active',
'any-link',
'autofill',
'blank',
'checked',
/*
https://www.w3.org/Style/CSS/Test/CSS3/Selectors/20011105/html/tests/css3-modsel-85.html
https://www.w3.org/Style/CSS/Test/CSS3/Selectors/20011105/html/tests/css3-modsel-84.html
*/
'contains',
'current',
'default',
Expand Down Expand Up @@ -273,7 +278,6 @@ keywordSets.otherPseudoClasses = new Set([
'target',
'user-error',
'user-invalid',
'val',
'valid',
'visited',
]);
Expand Down