From 9b670b4f6e2162a034eb6ea9acf17bb6e3f92055 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Fri, 29 Jul 2022 12:41:39 +0200 Subject: [PATCH] Do not print warning if print-color-adjust is also in the rule --- lib/processor.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/processor.js b/lib/processor.js index de13fb730..d27b5e8fe 100644 --- a/lib/processor.js +++ b/lib/processor.js @@ -113,11 +113,13 @@ class Processor { let value = decl.value if (prop === 'color-adjust') { - result.warn( - 'Replace color-adjust to print-color-adjust. ' + - 'The color-adjust shorthand is currently deprecated.', - { node: decl } - ) + if (parent.every(i => i.prop !== 'print-color-adjust')) { + result.warn( + 'Replace color-adjust to print-color-adjust. ' + + 'The color-adjust shorthand is currently deprecated.', + { node: decl } + ) + } } else if (prop === 'grid-row-span') { result.warn( 'grid-row-span is not part of final Grid Layout. Use grid-row.',