New issue
Advanced search Search tips

Issue 915090 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Overflow images disappear if the web page is printed to PDF

Reported by pezh...@microstrategy.com, Dec 14

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0

Steps to reproduce the problem:
1. Print the attached HTML to PDF.
2. Set paper size to Letter.
3. See how the image inside disappears.

What is the expected behavior?
The image won't disappear although it overflows its parent. It should be clipped and displayed in the current page.

What went wrong?
The image is wrapped by a <div> with a limited height and overflow: hidden.
Usually, the image will be displayed in the next PDF page. However, there is a parent node <div style="height: 200px; overflow: hidden">, which makes it impossible to move the image to the next PDF page. I think this could be where Skia goes wrong. It works well if the web page is printed to a PNG image.

Did this work before? No 

Chrome version: 71.0.3578.98 (Official Build) (64-bit) (cohort: 71_Win_98)  Channel: stable
OS Version: 10
Flash Version: Shockwave Flash 23.0 r0
 
print.html
3.9 KB View Download
Components: Internals>Printing
Labels: Needs-Triage-M71
Cc: viswa.karala@chromium.org
Labels: Triaged-ET FoundIn-73 Target-73 M-73 FoundIn-71 FoundIn-72 OS-Linux OS-Mac
Able to reproduce the issue on chrome reported version# 71.0.3578.98 and on latest chrome# 73.0.3639.0 with sample file provided in comment# 0 using Mac 10.12.6, Windows-10 and Ubuntu 17.10. As this issue is sen from M-60(60.0.3112.0), hence considering this issue as Non-Regression and marking it as Untriaged.

Thanks!
Cc: halcanary@google.com
halcanary: If this is not a SkPDF issue, then let's check in with Blink layout folks.
Cc: vamshi.kommuri@chromium.org
Status: Untriaged (was: Unconfirmed)
From comment#2, changing the status to Untriaged.

Thanks!
Components: Blink>Layout
Adding Blink>Layout anyway, so Blink folks can take a look too.
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
Presumably this is due to pagination not being able to handle the image. 

Realistically we're not going to be able to prioritize this until we rework our block fragmentation implementation which is at least a year out.
Is there a bug we can mark this as blocked on?
Is there an option to disable pagination since pagination is not desired sometimes? Could we provide such a new PDF option?

Sign in to add a comment