Page MenuHomePhabricator

Printing page with an empty HTML element with "display: flex; gap: xxpx;" causes resulting PDF to have tens of thousands of empty pages
Open, LowPublicBUG REPORT


If a page has an empty HTML element with the following style: display: flex; gap: xxpx;(xx is any positive integer), it causes any printing of the page to be tens of thousands of pages long. Reproducible on this page: Reproducible both with Google Chrome's print function (Control/Cmd + P) and with

Seems to be due to, meaning this issue has existed since Chrome v89. Potential fix incoming at Chrome 108 per the crbug link.

Part of T314281.

Event Timeline

Change 860562 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[mediawiki/services/chromium-render@master] Build image with latest dependencies

Currently the latest version of the chromium package on bullseye is 107. I am checking if there is something we can do as a workaround until 108 gets released.

  Installed: 107.0.5304.110-1~deb11u1
  Candidate: 107.0.5304.110-1~deb11u1
  Version table:
 *** 107.0.5304.110-1~deb11u1 500
        500 bullseye-security/main amd64 Packages
        100 /var/lib/dpkg/status
     104.0.5112.79-1~deb11u1 500
        500 bullseye/main amd64 Packages