Closed Bug 1717703 Opened 4 months ago Closed 3 months ago

Printing with a page-size that causes vertical scaling results in clipped content

Categories

(Core :: Printing: Output, defect, P2)

defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: alaskanemily, Assigned: alaskanemily)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Any divs fully outside the pres context's paper size are not shown. It seems that there is some extra clipping occurring when printing, besides just the reflow size of the nsPageContentFrame.

This isn't a serious issue as using page-size is currently behind a pref anyway.

The actual content frames are scaled down when this is too large, so no
overdraw will occur.

This test couldn't succeed without the fix for the clipping issue.

Attachment #9230380 - Attachment description: Bug 1717703 Part 2 - Add test for down-scaled page-size → Bug 1717703 Part 2 - Add test for printing with down-scaled page-size.
See Also: → 1720621

Same bug here. Firefox 90

when auto scaling is on in Print dialog. Scaled Page on the left gets cut of

added in my print.css

body {
transform-origin: 0 0;
transform: scale(.65); //thats what i need
}

so the print dialog has nothing to scale...

Then the Printout is okay

(In reply to James Shagall from comment #3)

body {
transform-origin: 0 0;
transform: scale(.65); //thats what i need
}

so the print dialog has nothing to scale...

Then the Printout is okay

I had a similar thought and created a bookmarklet along those lines. https://support.mozilla.org/en-US/questions/1343808#answer-1427945 It prevents the horizontal and vertical truncation even with "Fit to page width" but the content doesn't flow naturally, in the sense that there is extra blank space at the bottom of the pages. So definitely not a complete workaround (not to mention the inconvenience...).

Pushed by emcdonough@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1a2bbe277586
Part 1 - Set display list clipping rect for nsPageFrame children to use the content size. r=emilio,mattwoodrow
https://hg.mozilla.org/integration/autoland/rev/f46839a3cf86
Part 2 - Add test for printing with down-scaled page-size. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

The patch landed in nightly and beta is affected.
:alaskanemily, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emcdonough)

No big need to uplift, this only affects page-size which is still behind a pref.

Flags: needinfo?(emcdonough)
Regressions: 1722890
You need to log in before you can comment on or make changes to this bug.