Skip to content

Commit

Permalink
Do not print warning if print-color-adjust is also in the rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jul 29, 2022
1 parent bcc5ff6 commit 9b670b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 9b670b4

Please sign in to comment.