I'm looking for a property which will have the same effect as -webkit-print-color-adjust
does in Safari, but Firefox and Explorer.
Will you please suggest to me such a property, if it exists?
The print-color-adjust (or -webkit-print-color-adjust as prefixed in WebKit/Blink browsers) property is a CSS extension that can be used to force printing of background colors and images.
The background-color CSS property sets the background color of an element.
The color property in CSS is used to change the color of the text. The color values can be expressed in RGB color numbers, color keywords, or in hexadecimal color numbers. This CSS property sets the foreground color of the content of an element.
No such property exists at this time. Many browser vendors consider all printing specifications to be at the discretion of the user.
It appears that the CSS Working Group's Color Module 4 draft now includes color-adjust. I'm hoping that it will find its way into browsers in the future, as I also have been looking for a cross-browser alternative to -webkit-print-color-adjust
.
The proposal pretty much matches the behavior of -webkit-print-color-adjust. It has two values:
economy
(default) allows the printer to use its default ink-saving mode.exact
hints that the printer should preserve the colors.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