fix(css/prefixer): Add prefix for print-color-adjust (#4503)

This commit is contained in:
Alexander Akait 2022-05-03 04:23:50 +03:00 committed by GitHub
parent 518f769ef0
commit 90ac93af12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

@ -1254,6 +1254,11 @@ impl VisitMut for Prefixer {
add_declaration!(Prefix::Webkit, "-webkit-print-color-adjust"); add_declaration!(Prefix::Webkit, "-webkit-print-color-adjust");
} }
"print-color-adjust" => {
add_declaration!(Prefix::Moz, "color-adjust");
add_declaration!(Prefix::Webkit, "-webkit-print-color-adjust");
}
"columns" => { "columns" => {
add_declaration!(Prefix::Webkit, "-webkit-columns"); add_declaration!(Prefix::Webkit, "-webkit-columns");
add_declaration!(Prefix::Moz, "-moz-columns"); add_declaration!(Prefix::Moz, "-moz-columns");

View File

@ -0,0 +1,7 @@
.a {
print-color-adjust: economy;
}
.b {
print-color-adjust: exact;
}

View File

@ -0,0 +1,10 @@
.a {
color-adjust: economy;
-webkit-print-color-adjust: economy;
print-color-adjust: economy;
}
.b {
color-adjust: exact;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}