Open Bug 1027077 Opened 11 years ago Updated 3 years ago

absolute positioned element with margins induces print margin growth

Categories

(Toolkit :: Printing, defect)

30 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugs, Unassigned)

Details

Attachments

(1 file)

Attached file sample.html
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 OPR/22.0.1471.50 Steps to reproduce: I created a <div style="position:absolute; margin:0 14px;"> within a relatively positioned element such as <body style="position:relative;">. I filled it with several pages of regular <p> elements. The final document had 4 pages print-wise. I then generated a print-preview and also printed those pages. Actual results: The print preview sees successive pages having a larger right-margin. This is most clearly visible with text-align:justify. This growth happens even if you have just a left-margin specified. Expected results: The right-margins on the printed pages should have stayed the same from page to page; more particularly, they should all have the same margin as the first page. I'm not entirely sure having margins on an absolutely positioned element makes sense. They are removed from the normal flow and pretty much have no dimensions within the container element. Nevertheless, they do have dimensions within the <body> or the <html> element. I think those margins should be honoured, and they are.
OS: All → Windows 7
Hardware: All → x86
Hi, Bart. Thanks for the report; would you be willing to mentor a contributor through the resolution of this bug?
Flags: needinfo?(bugs)
Hi Mike. It's not like I really have time or energy for that. I would think the description is pretty clear and anyone can reproduce it? Anyone can do this on their own, probably.
Flags: needinfo?(bugs)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: