Bug 12275 - Printing the page results in 2 printed pages and 40 empty ones
Summary: Printing the page results in 2 printed pages and 40 empty ones
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: 420+
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Dave Hyatt
URL: http://bouniol.homeip.net:8080/www.am...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-14 20:34 PST by Dimitri Bouniol
Modified: 2007-01-15 02:28 PST (History)
1 user (show)

See Also:


Attachments
Don't add in negative margins when positioning page breaks, since they result in a backwards slide. (789 bytes, patch)
2007-01-15 01:48 PST, Dave Hyatt
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitri Bouniol 2007-01-14 20:34:59 PST
Using the CSS property 'page-break-after: always;' for the divs (class = page) in the file seem to cause it to create 40 blank pages in between the two printed ones. This does not happen in Firefox, but it does in non-nightly version of Safari.
Comment 1 Alexey Proskuryakov 2007-01-14 21:17:08 PST
(In reply to comment #0)
> This does not happen in Firefox, but it does in non-nightly
> version of Safari.

Do nightly builds work correctly for you?
Comment 2 Dimitri Bouniol 2007-01-14 23:54:01 PST
No, the bug is in the latest nightly. Just print the URL above and click preview - the first and last pages have something on then, but the 40 in the middle are blank.
Comment 3 Dave Hyatt 2007-01-15 01:48:38 PST
Created attachment 12450 [details]
Don't add in negative margins when positioning page breaks, since they result in a backwards slide.
Comment 4 Eric Seidel (no email) 2007-01-15 02:08:03 PST
Comment on attachment 12450 [details]
Don't add in negative margins when positioning page breaks, since they result in a backwards slide.

Looks sane.  We don't have to work about right margins or any other margins having this issue?

We also need a way to let DRT test printing... bah.
Comment 5 Dave Hyatt 2007-01-15 02:28:09 PST
Fixed.

Comment 6 Dave Hyatt 2007-01-15 02:28:45 PST
Fixed in r18857.