Is there any way to ensure that my grey font colors do not turn black?
Firefox and Chrome seem to do this in order to prevent white text on black background from turning into white on white. I do not have a background color (except white), so this browser-level conversion is not useful, it only helps in preventing grey colors for no reason.
Is there a way to turn this off? Or should I just stick with techniques like opacity, browser detection, and coloring my grays...
Solution:
@media print { h1 { color: rgba(0, 0, 0, 0); text-shadow: 0 0 0 #ccc; } @media print and (-webkit-min-device-pixel-ratio:0) { h1 { color: #ccc; -webkit-print-color-adjust: exact; } } }
I found had to :
Add !important
to the css rule... and...
In the Firefox print dialog, tick the option for "Appearance: Print background colors"
I couldn't get it to work in Chrome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With