Open Bug 166836 Opened 22 years ago Updated 2 years ago

[abs pos]absolute positioned div is printed on a separate page

Categories

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

x86
Windows 2000
defect

Tracking

()

People

(Reporter: jesse.houwing, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I've got a sample document that has sidenotes (small tips in the gutter). These sidenotes get printed on their own page, instead of in the gutter where they belong. In the browser this is displayed correctly. IE and Opera will do this the right way too.
Attached file test case
core layout
Assignee: rods → karnaze
Summary: absolute positioned div is printed on a seperate page → [abs pos]absolute positioned div is printed on a separate page
Status: NEW → ASSIGNED
Depends on: 154892
Priority: -- → P3
Target Milestone: --- → mozilla1.3beta
Depends on: 75213
mass reassign to default owner
Assignee: karnaze → table
Status: ASSIGNED → NEW
Component: Print Preview → Layout: Tables
QA Contact: sujay → madhur
Target Milestone: mozilla1.3beta → ---
Target Milestone: --- → Future
print bugs
Assignee: table → printing
Component: Layout: Tables → Printing
QA Contact: madhur → sujay
Target Milestone: Future → ---
I am experiencing the same thing. I tried wrapping the AbsPosDivs with another <DIV> tag and assigning that a class declaring "page-break-inside: avoid !important;" but that didn't make a difference. I also tried the same style declaration for the <BODY> tag, same result. Two things that seem to work keeping AbsPosDivs together: 1. "white-space: pre;" for the wrapper div (None and Auto do not work either). But then that double spaces everything! 2. make wrapper <div> Absolutely positioned to {top:0px; left: 0; z-index: 1; position: absolute; margin: 0 0 0 0; padding: 0 0 0 0;}. The problem with this then is addressed in Bug#75213, long pages cut-off, shows/prints only page 1.
I found a MOZILLA WorkAround!!!! (now jacked in IE6 - A browser detect & write these lines may be in order) link a stylesheet for printing only. <link href="/common/NoPrint.css" rel="stylesheet" type="text/css" media="print" /> In the stylesheet, redefine the <BODY> tag with: body{ white-space: pre; line-height: .5em; } Long Single Divs that wouldn't print all parts before should print all parts, and also, divs that were split and printed on multiple pages, will now all print Inline. YEAH!
Assignee: printing → nobody
QA Contact: sujay → printing
Blocks: 521204
No longer depends on: 154892
Still happens under Firefox 3.7pre under Windows 7.
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 15 votes.
:jwatt, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jwatt)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

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

Attachment

General

Creator:
Created:
Updated:
Size: