Skip to content

Commit

Permalink
Add autofill pseudo-class (#5171)
Browse files Browse the repository at this point in the history
- document :contains() before its removal
- remove JSONSelect val pseudo-class (guilty commit 8c808d0)
  • Loading branch information
Mouvedia committed Mar 3, 2021
1 parent 675e603 commit 55c1afa
Showing 1 changed file with 7 additions and 3 deletions.
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

0 comments on commit 55c1afa

Please sign in to comment.