Skip to content

Commit

Permalink
Add forced-colors support for media-feature-name-* rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed May 15, 2020
1 parent cca7d52 commit 6654713
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reference/keywordSets.js
Expand Up @@ -527,8 +527,8 @@ keywordSets.pageMarginAtRules = new Set([

// https://developer.mozilla.org/en/docs/Web/CSS/At-rule
keywordSets.atRules = uniteSets(keywordSets.pageMarginAtRules, [
'apply',
'annotation',
'apply',
'character-variant',
'charset',
'counter-style',
Expand Down Expand Up @@ -572,6 +572,7 @@ keywordSets.mediaFeatureNames = uniteSets(keywordSets.deprecatedMediaFeatureName
'color',
'color-gamut',
'color-index',
'forced-colors',
'grid',
'height',
'hover',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/media-feature-name-no-unknown/__tests__/index.js
Expand Up @@ -44,6 +44,9 @@ testRule({
code: '@media (--viewport-medium) { }',
description: 'ignore css variables',
},
{
code: '@media (forced-colors: active) { }',
},
],

reject: [
Expand Down

0 comments on commit 6654713

Please sign in to comment.