Open Bug 1827482 Opened 2 years ago Updated 2 years ago

Content overlaps headers (and footers disappear), when printing/print-previewing with a physical printer and sufficiently-small top margin

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(2 files)

Attached file testcase 1

STR:

  1. Load attached testcase.
  2. Print-preview.
  3. Choose a physical printer as your destination.
  4. In "More settings" in the print preview UI, choose Margins:Minimum, or Custom with 0 (or small values).
  5. Ensure you have the "Print headers and footers" checkbox checked.

ACTUAL RESULTS:

  • The header shows up, overlapping the page content.
  • The footer does not show up.

EXPECTED RESULTS:
Probably neither the header nor footer should show up.

As I recall, we intend to render the header/footer in the gap that's outside of the (user-controllable) print-margin, but inside the writeable bounds. If there's not enough space in that gap, we just decline to show the header/footer. That seems to be what's happening for the footer (we decline to show it), but we're rendering the header overlaying the actual document content, for some reason.

This doesn't seem to be a recent regression, FWIW; I can repro with Nightly 86.0a1 (2021-01-01) with my Brother HL-2280DW, on linux. I also tested & can reproduce in yesterday's Nightly on Linux and macOS -- version 114.0a1 (2023-04-10).

[EDIT: initially I thought this reproduced with Margins:None, too -- but after retesting, it seems like that works properly; the header doesn't show up, which is good.]

Severity: -- → S3

This affects the actual printed output as well; it's not just a print preview glitch.

(the expected results here -- hidden headers/footers -- might date back to bug 1250674. I don't recall / haven't tested if we autohid headers/footers to avoid collisions with content area before that point; or indeed if it was possible for headers/footers to collide with the content area back then [if you could set the margins to be sufficiently small or not)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: