Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS property print-color-adjust for non-webkit browsers

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?

like image 696
Udi Levy Avatar asked Oct 04 '12 15:10

Udi Levy


People also ask

What is WebKit print color adjust?

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.

Which CSS property is used to set the background color of a Web page?

The background-color CSS property sets the background color of an element.

Which CSS property is used to change the Colour?

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.


2 Answers

No such property exists at this time. Many browser vendors consider all printing specifications to be at the discretion of the user.

like image 152
KatieK Avatar answered Oct 15 '22 14:10

KatieK


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.
like image 34
MichaelM Avatar answered Oct 15 '22 12:10

MichaelM