Open
Bug 1027077
Opened 11 years ago
Updated 3 years ago
absolute positioned element with margins induces print margin growth
Categories
(Toolkit :: Printing, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: bugs, Unassigned)
Details
Attachments
(1 file)
23.59 KB,
text/html
|
Details |
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.
Reporter | ||
Updated•11 years ago
|
OS: All → Windows 7
Hardware: All → x86
Comment 1•11 years ago
|
||
Hi, Bart. Thanks for the report; would you be willing to mentor a contributor through the resolution of this bug?
Flags: needinfo?(bugs)
Reporter | ||
Comment 2•11 years ago
|
||
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)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•