diff --git a/src/values/colors.js b/src/values/colors.js index 5a09f18..d2052d4 100644 --- a/src/values/colors.js +++ b/src/values/colors.js @@ -159,42 +159,25 @@ export const namedColors = new KeywordSet([ export const systemColors = new KeywordSet([ // CSS System Colors // Spec: https://drafts.csswg.org/css-color/#css-system-colors - // TODO: Deprecated CSS System colors - // Spec: https://drafts.csswg.org/css-color/#deprecated-system-colors - 'background', - 'buttontext', - 'highlight', - 'windowtext', - 'graytext', - 'highlighttext', + 'accentcolor', + 'accentcolortext', + 'activetext', + 'buttonborder', 'buttonface', - 'window', - 'buttonshadow', - 'buttonhighlight', - 'menu', - 'windowframe', - 'activeborder', - 'infotext', - 'infobackground', - 'activecaption', - 'menutext', - 'scrollbar', - 'inactivecaption', - 'appworkspace', - 'inactiveborder', - 'inactivecaptiontext', + 'buttontext', 'canvas', 'canvastext', - 'linktext', - 'visitedtext', - 'activetext', - 'buttonborder', 'field', 'fieldtext', - 'selecteditem', - 'selecteditemtext', + 'graytext', + 'highlight', + 'highlighttext', + 'linktext', 'mark', 'marktext', + 'selecteditem', + 'selecteditemtext', + 'visitedtext', ]) export const colorFunctions = new KeywordSet([ @@ -202,12 +185,12 @@ export const colorFunctions = new KeywordSet([ 'rgb', 'hsla', 'hsl', + 'oklch', 'color', 'hwb', 'lch', 'lab', 'oklab', - 'oklch', ]) export const colorKeywords = new KeywordSet([ diff --git a/src/values/colors.test.js b/src/values/colors.test.js index 2770ec6..b4b8d22 100644 --- a/src/values/colors.test.js +++ b/src/values/colors.test.js @@ -767,6 +767,9 @@ Colors('does not report false positives for color keywords', () => { /* Not the black color keyword */ font-family: Arial Black, Arial Bold, Gadget, sans-serif; font: 1em/1 Black; + + /* not a color keyword */ + -ms-overflow-style: scrollbar; } `).values.colors const expected = {