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

NEW
Unassigned

Status

()

P3
normal
16 years ago
8 years ago

People

(Reporter: jesse.houwing, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
x86
Windows 2000
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
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.
(Reporter)

Comment 1

16 years ago
Created attachment 97954 [details]
test case

Comment 2

16 years ago
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

Updated

16 years ago
Status: NEW → ASSIGNED
Depends on: 154892
Priority: -- → P3
Target Milestone: --- → mozilla1.3beta

Comment 3

16 years ago
mass reassign to default owner
Assignee: karnaze → table
Status: ASSIGNED → NEW
Component: Print Preview → Layout: Tables
QA Contact: sujay → madhur
Target Milestone: mozilla1.3beta → ---

Updated

16 years ago
Target Milestone: --- → Future

Comment 4

16 years ago
print bugs
Assignee: table → printing
Component: Layout: Tables → Printing
QA Contact: madhur → sujay
Target Milestone: Future → ---

Comment 5

16 years ago
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.

Comment 6

16 years ago
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

Updated

9 years ago
Blocks: 521204

Updated

9 years ago
No longer depends on: 154892
(Reporter)

Comment 7

9 years ago
Still happens under Firefox 3.7pre under Windows 7.
You need to log in before you can comment on or make changes to this bug.