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 507133f commit f52303eCopy full SHA for f52303e
csscolorparser.js
@@ -141,8 +141,8 @@ function parseCSSColor(css_str) {
141
var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
142
if (!(iv >= 0 && iv <= 0xfff)) return null; // Covers NaN.
143
return [((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),
144
- (iv & 0xf) | ((iv & 0xf) << 4),
145
(iv & 0xf0) | ((iv & 0xf0) >> 4),
+ (iv & 0xf) | ((iv & 0xf) << 4),
146
1];
147
} else if (str.length === 7) {
148
0 commit comments