Open Bug 425848 Opened 16 years ago Updated 2 years ago

Div with large margin-top isn't visible in print / print-preview

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(4 files)

Steps to reproduce:
 - Print-preview (or print) the attached testcase.

Expected behavior:
 - The string "This text should be visible in print preview" should be visible somewhere.

Actual behavior: 
  - 2 blank pages (with headers/footers) are printed.


If I stick some content (e.g. a single character, a <br/>, or a specified-height div) before the div, then it fixes the issue -- the string becomes visible at the very top of the second page.  (see upcoming reference case for an example)


This happens in FF2 as well, so this bug may already filed somewhere -- sorry if it's a dupe.
Component: Print Preview → Printing
This testcase shows that it's actually just the *first line* of the div that's not visible.  The later lines seem to be snipped into a separate container which is pushed to the second page.

Viewing this testcase in FF3rc1, I get 
 First page: blank
 Second page: starts with "should... here's some more text, just to make [etc.]"
   (i.e. first line of the paragraph is cut off.)
Attached file reference 2
This version just adds a 1px-high div at the beginning, which pushes the "margin-top" div in its entirety to the second page and makes it completely visible there.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: