My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 107763: BGcolor still not supported in chrome v18
5 people starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Dec 2011

Sign in to add a comment
Reported by fabios4rulez, Dec 15, 2011
Chrome Version       : 18.0.971.0

What steps will reproduce the problem?
1. navigate to a page with background color
2. ctrl+p

What is the expected result?
see the whole page ready for print

What happens instead?
page is displayed with no background color

There is an open bug, wich is  issue 2294  but is read-only. It is written that the patch landed and the background color are displayed and ready to test but it is not! I wanted to point that out... Can you re-open comments there so that someone may confirm this works or not?
Dec 15, 2011
Confirming this bug, since original bug will not accept additional comments.

I am unable to print background colors in the latest chrome canary -
Google Chrome	18.0.972.1 (Official Build 114648) canary
Status: Untriaged
Labels: -Area-Undefined -OS-Windows Area-UI OS-All Feature-Printing Feature-PrintPreview
Dec 15, 2011
(No comment was entered for this change.)
Dec 15, 2011
Just confirmed with macpherson, who worked on the original change.  This does work as intended.

Set -webkit-print-color-adjust:exact; on the elements whose background color should be printed.
1) doesn't work for the document body, only its children.
2) there is a known bug with webkit background gradient rendering. colors and images are fine though.

Note that this does _not_ mean that printing any page with a background color will work out of the box.  Page authors have to add this declaration to their CSS to tell the browser that the background color is intended to be printed.  

This implementation was decided upon after lengthy discussions in WebKit and public standards mailing lists.  For a taste of that discussion, see
Status: WontFix
Aug 18, 2012
The user, not the dev, needs control of background printing.
Oct 6, 2012
I agree, this needs to be a user-controllable checkbox in the print dialog... NOT a CSS option. I really don't see how this is open to discussion, it's a long-standing, inexcusable omission. Making things worse, -webkit-print-color-adjust:exact; does NOT work on 22.0.1229.79 (OSX 10.8.2) - so as of now, there is no solution whatsoever. 
Oct 7, 2012
Just tested in 22.0.1229.79 on OSX 10.8.2, and setting -webkit-print-color: exact; on this very page produced the expected results - background colors were printed as expected.

Moreover, you are free to install one of the chrome extensions that injects this CSS into the page when the user selects it from the UI (thus fulfilling your desire for a user-controllable checkbox.)
Oct 10, 2012
I just found a chrome addon that purports to enable background color printing.

hopefully it works.  I have been waiting for this feature for years.
Mar 10, 2013
(No comment was entered for this change.)
Labels: -Area-UI -Feature-Printing -Feature-PrintPreview Cr-UI Cr-Internals-Printing Cr-UI-Browser-PrintPreview
Sep 25, 2013
        	filter:alpha(opacity=99);-moz-opacity:0.99;-khtml-opacity: 0.99;opacity: 0.99;
Sign in to add a comment

Powered by Google Project Hosting