Skip to content

Commit

Permalink
Fix false negatives for unit-no-unknown and selector-type-case
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouvedia committed Mar 16, 2022
1 parent e026f57 commit eef39ff
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/reference/keywordSets.js
Expand Up @@ -31,6 +31,18 @@ keywordSets.lengthUnits = new Set([
'rlh',
'lh',
// Viewport-percentage lengths
'dvh',
'dvmax',
'dvmin',
'dvw',
'lvh',
'lvmax',
'lvmin',
'lvw',
'svh',
'svmax',
'svmin',
'svw',
'vh',
'vw',
'vmin',
Expand Down Expand Up @@ -755,8 +767,11 @@ keywordSets.nonStandardHtmlTags = new Set([
'xmp',
]);

// extracted from https://developer.mozilla.org/en-US/docs/Web/SVG/Element
keywordSets.validMixedCaseSvgElements = new Set([
'altGlyph',
'altGlyphDef',
'altGlyphItem',
'animateColor',
'animateMotion',
'animateTransform',
'clipPath',
Expand Down Expand Up @@ -786,6 +801,7 @@ keywordSets.validMixedCaseSvgElements = new Set([
'feTile',
'feTurbulence',
'foreignObject',
'glyphRef',
'linearGradient',
'radialGradient',
'textPath',
Expand Down

0 comments on commit eef39ff

Please sign in to comment.