Closed Bug 1033149 Opened 10 years ago Closed 4 years ago

Content is progressively squashed on subsequent pages, with overflowing content & nonzero horizontal margin

Categories

(Core :: Printing: Output, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 563436

People

(Reporter: alice0775, Unassigned)

References

Details

(Keywords: regression)

Attachments

(4 files)

Attached file index.html
THis problem is reproducible in Firefox24esr as well as Nightly33.0a1.
This is a regression between Firefox2.2 and Firefox3.0.

html, body {
  height: 100%; 
}
body {
  margin: 0px 150px;
}


Steps To Reproduce:
1. Open attached html
2. Print or Print preview

Actual Results:
Wrong right margin in page 3+
Regression window:
Good:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9b4pre) Gecko/2008020804 Firefox/3.0b4pre ID:2008020804
Bad:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9b4pre) Gecko/2008020904 Firefox/3.0b4pre ID:2008020904
Bonsai log:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2008-02-08+00%3A00%3A00&maxdate=2008-02-09+04%3A00%3A00&cvsroot=%2Fcvsroot

Suspect: Bug 411382
Blocks: 411382
Attached image screenshot.png
Daniel, you want to take a look?
Flags: needinfo?(dholbert)
OS: Windows 7 → All
Attached file testcase 2
Here's another testcase, with a very tall blue-bordered div, and a fixed-height <body> (w/ red border) that ends on the first page.

(In the original testcase, the "height:100%" on the <body> makes it end at the very top of the second page; I've reduced the height here for simplicity.)

In pages after the end of the <body> content-area (i.e. on pages 2, 3, etc. in this testcase), the blue-bordered div gets progressively skinnier.

So, this seems to be an issue with figuring out how much space we have available in overflow container continuation-frames.
Attached file testcase 3
(Here's a variant of the previous testcase, with a small-fixed-height container div being used, instead of a fixed-height <body>. This reproduces the bug just as well, showing that this isn't <body>-specific.)
Flags: needinfo?(dholbert)
(I also recall seeing a bug like this before, which this might be a dupe of.  Perhaps bug 649802, but it looks like I had the same feeling there, per bug 649802 comment 10, so there may be an older one.)
Flags: needinfo?(dholbert)
See Also: → 649802
Summary: Wrong right margin in print / print preview → Content is progressively squashed on subsequent pages, with overflowing content & nonzero horizontal margin

Duping to bug 649802 for now, anyway.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE
Version: 1.9.0 Branch → Trunk

This bug is fixed by bug 563436. Tested on Nightly 125.0a1 (2024-03-15).

Duplicate of bug: 563436
No longer duplicate of bug: 649802
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: