Closed Bug 1860675 Opened 2 years ago Closed 2 years ago

Page with a break-after and a page style induce an extra page

Categories

(Core :: Printing: Output, defect)

Firefox 120
defect

Tracking

()

RESOLVED DUPLICATE of bug 1819335

People

(Reporter: calixte, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file plop.html

STR:

  • open the attachment;
  • print.

8 pages are output when only 4 are expected.
If I comment the line page: N; then the output is ok.

For context, we've some pdf with different page orientations, so each page will get a style="page: Pxx where xx depends on the orientation and to be sure that we've a page for each pdf page, we use this:
https://github.com/mozilla/pdf.js/blob/377af6892b6c9e22a5fc545dfd454ad73f411990/web/viewer.css#L1403-L1404

Just compared this on Nightly with Google Chrome. Nightly has 4 redundant pages indeed.

Severity: -- → S3
Blocks: 1795258

This looks like the same as bug 1819335, where a change in page-name and a break-after (nsPageBreakFrame) are not coalesced. I tested this with that patch locally and it fixes it.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1819335
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: