Print.js: Blank page when printing on Chrome 65

Created on 13 Mar 2018  路  5Comments  路  Source: crabbly/Print.js

Browser: Google Chrome 65.0.3325.162
OS: Windows 7 64-bit

Issue:
After update from Chrome 64 to Chrome 65, printing html block shows and prints blank page. Image printing also shows blank page.

Steps to reproduce:

  1. Update to Chrome 65
  2. Try to print something
duplicate

Most helpful comment

Hey guys, I implemented the solution offered by Igor in #133
It seems to have fixed the issue with Chrome v65.

I already pushed the changes to npm as v1.0.33. Just run npm update print-js

All 5 comments

Me too.
Win 10.

Mee too, mac os 10.13.3 (17D102)

This bug is related to recent Chrome modification to support new CSS property display: contents.

Somehow this change breaks iframe rendering, that's why we're getting blank page. As a temporary workaround, I suggest to use style display:contents for iframeElement that is used for printing at /src/js/print.js file.

Probably, I'll prepare a fix soon.

For me, even after setting iframe style to "display: contents" I'm still getting blank page.
The only thing that I can confirm it is working is removing p.setAttribute("style", "display:none") from iframe element in /src/js/print.js file.

Hey guys, I implemented the solution offered by Igor in #133
It seems to have fixed the issue with Chrome v65.

I already pushed the changes to npm as v1.0.33. Just run npm update print-js

Was this page helpful?
0 / 5 - 0 ratings