diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-10-22 01:57:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 10:57:58 +0200 |
commit | 9696e0b3780ede9bb59ab3cf3bf4f2df179d0b32 (patch) | |
tree | b6005ec1a7adcd9600b7590248eb83194b202588 /ext/console | |
parent | f26c8bcf3167069ccd8ac3beb9185d1bf480a83f (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.js | 1 |
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); } |