New issue
Advanced search Search tips

Issue 903668 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 705916



Sign in to add a comment

PDF screenshot loses opacity when image background is stretched

Reported by min...@piktochart.com, Nov 9

Issue description

Chrome Version       : r594312

What steps will reproduce the problem?
(1) Create DIV with image background.
(2) Set DIV size to be 1px larger than image, either height or width.
(3) PDF screenshot using Puppeteer => 1.9.0

Puppeteer Steps
(1) Place files in /tmp
(2) Run `node puppeteer.js`
(3) Inspect screenshot files in /tmp/screenshot.pdf and /tmp/screenshot.png

What is the expected result?
Opacity of image background is preserved in PDF.

What happens instead?
Opacity resets to 1 for PDF screenshots.

 
puppeteer.js
419 bytes View Download
test.html
316 bytes View Download
Labels: Needs-Milestone
Also observed in Chrome so it's not specific to Puppeteer.

Simplified repro:
1. open test.html from #0
2. open the Print dialog
3. enable "[x] Background graphics" checkbox (may be hidden in "More settings")

Expected: preview shows two lightblue rectangles 
Observed: preview shows one lightblue and one blue rectangle

Bisect info: 310030 (good) - 310038 (bad)
https://chromium.googlesource.com/chromium/src/+log/a83215a2..7fa649a9?pretty=fuller
Suspecting r310032 = 18387e7ebb0eae6e4944e841d63ea058adab6e11 = https://crrev.com/821703005 by halcanary@google.com
"Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt."
Landed in 41.0.2268.0
Cc: halcanary@google.com
Components: -Internals>Headless Internals>Skia>PDF
Status: Untriaged (was: Unconfirmed)
re: comment 2 - thanks for bisecting!

Sign in to add a comment