commit 840cb3f998f2bccf2640714e1e7eab03edee26ad
parent be0220512e60abe5615e4586be76b53f6b358a84
Author: dwhisman <dwhisman@mozilla.com>
Date: Thu, 8 Jan 2026 17:25:38 +0000
Bug 2008740 - Include --color-black and --color-white to ignore list for unused CSS variables r=jules
Differential Revision: https://phabricator.services.mozilla.com/D278019
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/browser/base/content/test/static/browser_parsable_css.js b/browser/base/content/test/static/browser_parsable_css.js
@@ -200,9 +200,9 @@ let propNameAllowlist = [
/* Allow design tokens in devtools without all variables being used there */
{ sourceName: /\/design-system\/tokens-.*\.css$/, isFromDevTools: true },
- // Ignore token properties that follow the pattern --color-[name]-[number] or --color-[name]-alpha-[number]
+ // Ignore token properties that follow the patterns --color-[name], --color-[name]-[number], or --color-[name]-alpha-[number]
// This enables us to provide our full color palette for developers.
- { propName: /--color-[a-z]+(-alpha)?-\d+/, isFromDevTools: false },
+ { propName: /--color-[a-z]+(-alpha)?(-\d+)?/, isFromDevTools: false },
];
// Add suffix to stylesheets' URI so that we always load them here and