Skip to content

Commit

Permalink
Ignore system colors with declaration-strict-value, and unset keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed May 9, 2023
1 parent 27d9544 commit 62901d9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,28 @@ module.exports = {
'transparent',
'initial',
'none',
'unset',
// System colors for forced-colors styling.
// See https://drafts.csswg.org/css-color-4/#css-system-colors.
'Canvas',
'CanvasText',
'LinkText',
'VisitedText',
'ActiveText',
'ButtonFace',
'ButtonText',
'ButtonBorder',
'Field',
'FieldText',
'Highlight',
'HighlightText',
'SelectedItem',
'SelectedItemText',
'Mark',
'MarkText',
'GrayText',
'AccentColor',
'AccentColorText',
],
},
],
Expand Down
20 changes: 20 additions & 0 deletions src/__snapshots__/semver.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,26 @@ Object {
"transparent",
"initial",
"none",
"unset",
"Canvas",
"CanvasText",
"LinkText",
"VisitedText",
"ActiveText",
"ButtonFace",
"ButtonText",
"ButtonBorder",
"Field",
"FieldText",
"Highlight",
"HighlightText",
"SelectedItem",
"SelectedItemText",
"Mark",
"MarkText",
"GrayText",
"AccentColor",
"AccentColorText",
],
},
],
Expand Down

0 comments on commit 62901d9

Please sign in to comment.