Closed Bug 135653 Opened 23 years ago Closed 22 years ago

Elements with position:fixed; not printable and not visible in Print Preview

Categories

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

defect

Tracking

()

VERIFIED DUPLICATE of bug 179683
Future

People

(Reporter: bugzillawatcher, Assigned: rods)

References

Details

(Keywords: dataloss)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+) Gecko/20020404 BuildID: 20020404 Elements with position:fixed; not visbile in Print Preview. Load the testcase with an element having fixed position, go into Print Preview. You see a blank page. Reproducible: Always
Attached file Page with fixed position paragrah (deleted) —
Confirming on linux 2002040410.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Keywords: mozilla1.0
A good example how serious this bug is resource:///res/samples/test12.html Print Preview shows nothing.
Keywords: mozilla1.0mozilla1.1
Hardware: PC → All
Summary: Elements with position:fixed; not visbile in Print Preview → Elements with position:fixed; not visible in Print Preview
And worse: its not printing either. I suspect a relationship with bug 45788 (floating items are chopped off at end of page)?
Therefor changing component to printing and reassigning to owner of printing.
Component: Print Preview → Printing
Summary: Elements with position:fixed; not visible in Print Preview → Elements with position:fixed; not printable and not visible in Print Preview
*** Bug 146729 has been marked as a duplicate of this bug. ***
Keywords: mozilla1.2
Keywords: dataloss
The fixed elements are not even getting reflowed in PP.
roc+moz: Do you have any idea about why fixed frame never get reflow in PP?
Fixed elements are reflowed by the viewport. Do you have one of those? CSS says that for printing, a fixed element should be repeated once per page. You're probably going to have to write your own code to handle fixed elements. Maybe factor out the the fixed-element code in nsViewportFrame and call it from both nsViewportFrame and nsPageFrame? (If you copy and paste it I will get mad :-))
roc, thanks, I will look into that some more now that I know here to start.
You're welcome. But I beg you, don't duplicate code ... if you feel that you need to, we can look at how to reorganize the current code so you can use it. We might be able to rework nsAbsoluteContainingBlock so it can be used by the viewport and the page for fixed frames.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → Future
Depends on: 179683
*** This bug has been marked as a duplicate of 179683 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: