Skip to content

Commit 62901d9

Browse files
committed
Ignore system colors with declaration-strict-value, and unset keyword
1 parent 27d9544 commit 62901d9

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,28 @@ module.exports = {
7979
'transparent',
8080
'initial',
8181
'none',
82+
'unset',
83+
// System colors for forced-colors styling.
84+
// See https://drafts.csswg.org/css-color-4/#css-system-colors.
85+
'Canvas',
86+
'CanvasText',
87+
'LinkText',
88+
'VisitedText',
89+
'ActiveText',
90+
'ButtonFace',
91+
'ButtonText',
92+
'ButtonBorder',
93+
'Field',
94+
'FieldText',
95+
'Highlight',
96+
'HighlightText',
97+
'SelectedItem',
98+
'SelectedItemText',
99+
'Mark',
100+
'MarkText',
101+
'GrayText',
102+
'AccentColor',
103+
'AccentColorText',
82104
],
83105
},
84106
],

src/__snapshots__/semver.test.js.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,26 @@ Object {
233233
"transparent",
234234
"initial",
235235
"none",
236+
"unset",
237+
"Canvas",
238+
"CanvasText",
239+
"LinkText",
240+
"VisitedText",
241+
"ActiveText",
242+
"ButtonFace",
243+
"ButtonText",
244+
"ButtonBorder",
245+
"Field",
246+
"FieldText",
247+
"Highlight",
248+
"HighlightText",
249+
"SelectedItem",
250+
"SelectedItemText",
251+
"Mark",
252+
"MarkText",
253+
"GrayText",
254+
"AccentColor",
255+
"AccentColorText",
236256
],
237257
},
238258
],

0 commit comments

Comments
 (0)