Overflow images disappear if the web page is printed to PDF
Reported by
pezh...@microstrategy.com,
Dec 14
|
||||||
Issue descriptionUserAgent: 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
,
Dec 14
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!
,
Dec 20
halcanary: If this is not a SkPDF issue, then let's check in with Blink layout folks.
,
Jan 8
From comment#2, changing the status to Untriaged. Thanks!
,
Jan 9
Adding Blink>Layout anyway, so Blink folks can take a look too.
,
Jan 11
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.
,
Jan 11
Is there a bug we can mark this as blocked on?
,
Jan 11
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 |
||||||
Comment 1 by susan.boorgula@chromium.org
, Dec 14Labels: Needs-Triage-M71