New issue
Advanced search Search tips

Issue 657269 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Background images in printed pages are white instead of transparent

Reported by kup...@gmail.com, Oct 19 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36

Steps to reproduce the problem:
1. Open index.html (see attached zip file).
2. Press ctrl+a to select all text.
3. Click text by right mouse button and select "Print..."
4. Text of last paragraph will be overlapped by "empty" image.

What is the expected behavior?
Text on preview page should not be overlapped by images.

What went wrong?
Seems like Chrome uses different modes for Print of selected text and print of whole page. In first case not all @media print CSS rules works.

When you change options on preview page (check/uncheck Background graphics or check/uncheck Selection only) preview PDF becomes different.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 54.0.2840.59  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 
printBug.zip
1.2 KB Download
Cc: sureshkumari@chromium.org
Labels: Needs-Feedback OS-Linux OS-Mac
Unable to reproduce the issue on Windows-7,Mac-10.11.4 and Linux Ubuntu-14.04 using reported version 54.0.2840.59,chrome stable version 54.0.2840.71 and Latest canary 56.0.2896.3 with below steps
1.opened  index.html
2. Pressed  ctrl+a to select all text.
3. Clicked text by right mouse button and selected "Print..."
could not observed the Text of paragraph  overlapped by images.
Please find the attached screenshot and let us know anything missed here.

Thanks.
issue 657269.PNG
208 KB View Download

Comment 2 by kup...@gmail.com, Oct 23 2016

Check 2nd word in last paragraph, pls. It should be "ipsum" but white image hides part of word.


22d037cf-483e-41b8-b607-3723c62cbacc_copy.png
223 KB View Download
Components: UI>Browser>PrintPreview
Labels: -Type-Bug -Pri-2 -Needs-Feedback M-56 hasbisect Pri-1 Type-Bug-Regression
Owner: alancutter@chromium.org
Status: Assigned (was: Unconfirmed)

Able to reproduce the issue on windows-7, Mac 10.11.4 and Linux Ubuntu-14.04 using chrome stable version 54.0.2840.71 and  canary 56.0.2899.0

This is regression issue broken in M51.Please find the bisect information as below

Narrow Bisect::
===============
Good :51.0.2701.0 --   (build revision 385337)
Bad:: 51.0.2702.0 --   (build revision 385602)

ChangeLog: 
================

 https://chromium.googlesource.com/chromium/src/+log/95a6fd5887a9f1101be12815863fe2a9e4a07fdd..1d7eb2b891ccbe5ec16f7baf1751f5c223db0c7f

Possible suspect
==================

37a62ed4183b7ff3c7711650f580ab3b7973f046	

Review URL: https://codereview.chromium.org/1865603004

alancutter@ could you please look into this issue if it is related to your change,else please help us in finding the appropriate owner for this issue.

Thanks,



Labels: Regressed-51
Looks like it's due to the line "m_cachedImage = StyleInvalidImage::create(url());" in CSSImageValue.
Labels: Update-Fortnighly
Created minimal test case: https://jsfiddle.net/swxckne3/

<!DOCTYPE html>
<style>
#target {
  position: absolute;
  width: 100px;
  height: 100px;
  background: url("filesystem://");
}
</style>
<div id="target"></div>
Open print preview, the text on this page should not be cut off at the start.


https://codereview.chromium.org/1865603004 caused us to store computed FillLayer image values even if they can't be resolved to an image resource. Instead of nullptr we store StyleInvalidImages.

Seems like something is seeing a non-null value for the background FillLayer and attempts to paint it but only in print preview for some reason.
Components: -UI>Browser>PrintPreview Internals>Printing
Labels: -Update-Fortnighly Update-Weekly
Summary: Background images in printed pages are white instead of transparent (was: Print does not apply media print rules to print selected text)
Cc: alancutter@chromium.org
Labels: -Pri-1 -Update-Weekly Pri-2
Owner: nainar@chromium.org
nainar: Would you be willing to investigate this one from here? I think I wouldn't benefit as much from digging into print code as you would.
Sure will take a look at it and update here if I can find anything. 
Cc: tkonch...@chromium.org
Still able to reproduce the issue on win10 chrome version 56.0.2922.0 

nainar@, Could you please provide an update on this
nainar@ Friendly reminder!!

We are able to reproduce the issue on Windows 7 with latest stable# 54.0.2840.99 & Canary versions-57.0.2931.0.

Please check this issue & update on the same.

Thank you.


Hi, sorry for missing the message. I have just started looking at this and other printing related issues this week. I will update regarding any findings that I have as soon as I have something.
Just to update, still able to reproduce this issue on Mac 10.12.2 using latest canary #57.0.2977.0.

nainar@ - Gentle Ping...!!

Could you please have a look into this issue.

Thanks...!!

Cc: nainar@chromium.org
Owner: ----
Status: Available (was: Assigned)
Project Member

Comment 15 by sheriffbot@chromium.org, Feb 21 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -tkonch...@chromium.org -nainar@chromium.org -sureshkumari@chromium.org
Components: Blink>Paint
Labels: -M-56
This is not something we can fix on the printing side. Blink is painting the contents. Adding the Blink>Paint component for triaging.
Components: -Internals>Printing
Status: Available (was: Untriaged)
Status: WontFix (was: Available)
Works properly now.
cr657269.html
238 bytes View Download

Sign in to add a comment