We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839733e commit dcb492aCopy full SHA for dcb492a
css-compare.js
@@ -226,8 +226,7 @@ function filterSimilarColors(patchLines) {
226
// ...
227
// ]
228
const ALLOWED_PROPERTIES = [
229
- "color",
230
- "background-color",
+ "border",
231
];
232
const lineFilter = (line) => {
233
const rgbaCount = (line.text.match(/rgba\(/g) || []).length;
@@ -237,8 +236,9 @@ function filterSimilarColors(patchLines) {
237
236
throw new Error("More than one rgba per line. Investigate!");
238
}
239
240
- return rgbaCount === 1 &&
241
- (match && ALLOWED_PROPERTIES.includes(match[1]));
+ const allowedProperty = match && (match[1].includes("color") || ALLOWED_PROPERTIES.includes(match[1]));
+
+ return rgbaCount === 1 && allowedProperty;
242
243
244
chunks.forEach((chunk) => {
0 commit comments