Open Bug 1859926 Opened 8 months ago Updated 5 months ago

Page footers or headers get clipped in print-preview at certain window-sizes, CSS 'page-orientation' rotate-right or rotate-left

Categories

(Core :: Print Preview, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(5 files)

STR:

  1. Print-preview the attached testcase.
  2. Look at the page footers (page number and timestamp).
  3. Resize your window to be wider or skinnier (so that the scale of the print-preview rendering changes)

ACTUAL RESULTS:
At certain window-sizes (particularly larger sizes for testcase 1), the footers are clipped entirely.

EXPECTED RESULTS:
No such clipping.

I'm using Nightly 120.0a1 (2023-10-18) (64-bit) on Ubuntu 22.04.

Notes:

  • I think this issue only happens when page-orientation is used. Likely we're not taking the rotation into account when setting up our display lists, or something to that effect.
  • It only seems to affect the footer-text. In my brief testing so far, e.g. in a modified testcase with content-that-fills-the-paper (e.g. just a giant border), the actual content doesn't get clipped.
Attached file testcase 1

The behavior changes if I specify an explicit page-size like in this third testcase. I'll attach some screenshots showing the odd behavior here (where the clipping changes in response to my window-resizing).

Here's a screenshot of testcase 1, with the footers partially (mostly) clipped. If my window is a bit skinnier than the window shown here, then there's no clipping; everything is fine. If my window is a bit wider, then the footer is entirely clipped.

Summary: Page footers get clipped in print-preview at certain window-sizes, CSS 'page-orientation' rotate-right or rotate-left → Page footers or headers get clipped in print-preview at certain window-sizes, CSS 'page-orientation' rotate-right or rotate-left

In testcase 3, the mitigation is the opposite from testcases 1-2: the issue goes away when I make my window wider, whereas it gets progressively-more-clipped as I make my window skinnier.

Also, my testcase 3 screenshot is shown using a physical printer as my destination; but that's not important -- this reproduces when I choose the Save-to-PDF print target as well.

This might be a manifestation of the same issue we're hitting in bug 1763246.

See Also: → 1763246
Severity: -- → S3
See Also: → 1875144
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: