Loading...
@media print {
* {
print-color-adjust: exact;
}
}@media print {
.badge,
.chart {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
}Only meaningful colors are forced, and the prefixed line covers browsers that still need it.
@media print.Browsers drop backgrounds by default to save ink. print-color-adjust: exact asks them to keep the colors.
Yes. The browser print dialog setting can still override the page, so don't rely on color alone.