We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0179398 commit 1232351Copy full SHA for 1232351
csscolorparser.js
@@ -146,7 +146,7 @@ function parseCSSColor(css_str) {
146
1];
147
} else if (str.length === 7) {
148
var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
149
- if (!(iv >= 0 && iv < 0xffffff)) return null; // Covers NaN.
+ if (!(iv >= 0 && iv <= 0xffffff)) return null; // Covers NaN.
150
return [(iv & 0xff0000) >> 16,
151
(iv & 0xff00) >> 8,
152
iv & 0xff,
0 commit comments