mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
fix(css/prefixer): Add prefix for print-color-adjust
(#4503)
This commit is contained in:
parent
518f769ef0
commit
90ac93af12
@ -1254,6 +1254,11 @@ impl VisitMut for Prefixer {
|
||||
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" => {
|
||||
add_declaration!(Prefix::Webkit, "-webkit-columns");
|
||||
add_declaration!(Prefix::Moz, "-moz-columns");
|
||||
|
@ -0,0 +1,7 @@
|
||||
.a {
|
||||
print-color-adjust: economy;
|
||||
}
|
||||
|
||||
.b {
|
||||
print-color-adjust: exact;
|
||||
}
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user