Skip to content

Commit

Permalink
Fix some false positives in *-no-unknown rules (#5157) (#5158)
Browse files Browse the repository at this point in the history
- @Property
- nobr tag
- :state()
- ::file-selector-button
- lh, rlh, mozmm units
  • Loading branch information
Mouvedia committed Feb 23, 2021
1 parent 9322f0c commit 4fcbfe8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/reference/keywordSets.js
Expand Up @@ -28,6 +28,8 @@ keywordSets.lengthUnits = new Set([
'ex',
'ch',
'rem',
'rlh',
'lh',
// Viewport-percentage lengths
'vh',
'vw',
Expand All @@ -42,6 +44,7 @@ keywordSets.lengthUnits = new Set([
'pt',
'pc',
'q',
'mozmm',
// Flexible length units
'fr',
]);
Expand Down Expand Up @@ -171,6 +174,7 @@ keywordSets.levelThreePseudoElements = new Set([
'shadow',
'slotted',
'content',
'file-selector-button',
]);

keywordSets.shadowTreePseudoElements = new Set(['part']);
Expand Down Expand Up @@ -265,6 +269,7 @@ keywordSets.otherPseudoClasses = new Set([
'required',
'root',
'scope',
'state',
'target',
'user-error',
'user-invalid',
Expand Down Expand Up @@ -544,6 +549,7 @@ keywordSets.atRules = uniteSets(keywordSets.pageMarginAtRules, [
'nest',
'ornaments',
'page',
'property',
'styleset',
'stylistic',
'supports',
Expand Down Expand Up @@ -657,6 +663,7 @@ keywordSets.nonStandardHtmlTags = new Set([
'keygen',
'listing',
'marquee',
'nobr',
'noembed',
'plaintext',
'spacer',
Expand Down

0 comments on commit 4fcbfe8

Please sign in to comment.