My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  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
Cc:  komoro...@chromium.org, macpher...@chromium.org


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
3.

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
#1 pavanv@chromium.org
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
#2 pavanv@chromium.org
(No comment was entered for this change.)
Cc: komoro...@chromium.org
Dec 15, 2011
#3 komoro...@chromium.org
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.
Caveats:
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 https://bugs.webkit.org/show_bug.cgi?id=64583
Status: WontFix
Cc: macpher...@chromium.org
Aug 18, 2012
#4 c...@5000tq.com
The user, not the dev, needs control of background printing.
Oct 6, 2012
#6 m...@contextureintl.com
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
#7 macpher...@chromium.org
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
#8 danielar...@gmail.com
I just found a chrome addon that purports to enable background color printing.  https://chrome.google.com/webstore/detail/print-background-colors/gjecpgdgnlanljjdacjdeadjkocnnamk

hopefully it works.  I have been waiting for this feature for years.
Mar 10, 2013
#9 bugdro...@chromium.org
(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
#10 MusicR...@gmail.com
 body{
        	-webkit-print-color-adjust:exact;
        }
        
        .bjs{
        	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