summaryrefslogtreecommitdiff
path: root/ext/console
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-10-22 01:57:58 -0700
committerGitHub <noreply@github.com>2024-10-22 10:57:58 +0200
commit9696e0b3780ede9bb59ab3cf3bf4f2df179d0b32 (patch)
treeb6005ec1a7adcd9600b7590248eb83194b202588 /ext/console
parentf26c8bcf3167069ccd8ac3beb9185d1bf480a83f (diff)
fix(ext/console): ignore casing for named colors in css parsing (#26466)
Diffstat (limited to 'ext/console')
-rw-r--r--ext/console/01_console.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/console/01_console.js b/ext/console/01_console.js
index 3c07cf64a..3803492b9 100644
--- a/ext/console/01_console.js
+++ b/ext/console/01_console.js
@@ -2653,6 +2653,7 @@ const HSL_PATTERN = new SafeRegExp(
);
function parseCssColor(colorString) {
+ colorString = StringPrototypeToLowerCase(colorString);
if (colorKeywords.has(colorString)) {
colorString = colorKeywords.get(colorString);
}