PDF screenshot loses opacity when image background is stretched
Reported by
min...@piktochart.com,
Nov 9
|
||
Issue descriptionChrome 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.
,
Nov 13
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
,
Nov 14
re: comment 2 - thanks for bisecting! |
||
►
Sign in to add a comment |
||
Comment 1 by phanindra.mandapaka@chromium.org
, Nov 13