printing prettyprinted page only prints first page

RESOLVED FIXED in mozilla1.4alpha

Status

()

RESOLVED FIXED
16 years ago
16 years ago

People

(Reporter: sicking, Assigned: hjtoi-bugzilla)

Tracking

Trunk
mozilla1.4alpha
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

When printing a prettyprinted page only the first page is printed. This is
probably due to the fact that the prettyprint content is inside an

<div style="top: 0; bottom: 0; left: 0; right: 0;">

This might be fixable by having an "@media print" rule that does some cool
css-trick.

Comment 1

16 years ago
I have also seen this problem while looking at XML schemas, which are themselves
XML documents.
An entire XML that has no stylesheet is displayed nicely as a color enhanced
document tree.  However an attempt to print only gets the first page, and print
preview always says Page 1 of 1.  Selecting File, Print, Print Range, All, or
even File, Print, Print Range, Pages, From 1 to (say) 10, does not help.  It
still only prints the first page.
Created attachment 116894 [details] [diff] [review]
Possible fix

This change makes printing work.

Jonas, why is the style rule like that for #top, it seems weird to me?
Whiteboard: [fixinhand]
Target Milestone: --- → mozilla1.4alpha
Comment on attachment 116894 [details] [diff] [review]
Possible fix

You should be able to remove that thing entierly. I wanted to protect against
styling on the root element, but that's silly considering that if there is any
styling we won't prettyprint in the first place.
Attachment #116894 - Flags: review-
Created attachment 116978 [details] [diff] [review]
removed #top rule, seems to work equally well
Attachment #116894 - Attachment is obsolete: true
Attachment #116978 - Flags: superreview?(peterv)
Attachment #116978 - Flags: review?(bugmail)
Comment on attachment 116978 [details] [diff] [review]
removed #top rule, seems to work equally well

r=sicking. Thanks for doing this!
Attachment #116978 - Flags: review?(bugmail) → review+
Attachment #116978 - Flags: superreview?(peterv) → superreview+
Checked in.
Whiteboard: [fixinhand]
This was fixed.
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.