is this library used by the Chrome audit PWA check? I landed here because the audit did not recognize my theme-color (meta tag in head area) rgba value.
I just checked 'CSSStyleDeclaration/lib/parsers.js' and the part:
res = colorRegEx3.exec(val);
if (res !== null) {
parts = res[1].split(/\s*,\s*/);
if (parts.length !== 4) {
return undefined;
}
if (
parts.slice(0, 3).every(percentRegEx.test.bind(percentRegEx)) ||
parts.every(integerRegEx.test.bind(integerRegEx))
) {
if (numberRegEx.test(parts[3])) {
return exports.TYPES.COLOR;
}
}
return undefined;
}
seems wrong to me. There is just one case where it returns exports.TYPES.COLOR:
rgba(PERCENT,PERCENT,PERCENT,ALPHA);
But not i.e.:
rgba(NUMBER,NUMBER,NUMBER,ALPHA);
Hello,
is this library used by the Chrome audit PWA check? I landed here because the audit did not recognize my theme-color (meta tag in head area) rgba value. I just checked 'CSSStyleDeclaration/lib/parsers.js' and the part:
seems wrong to me. There is just one case where it returns exports.TYPES.COLOR: rgba(PERCENT,PERCENT,PERCENT,ALPHA); But not i.e.: rgba(NUMBER,NUMBER,NUMBER,ALPHA);
Or am I wrong?