Closed Bug 343025 Opened 19 years ago Closed 17 years ago

Absolutely positioned large block is printed to only one page

Categories

(Core :: Printing: Output, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bugs, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1 Following code prints all to 2 pages and that is what is expected <html> <head> <script> function print() { window.frames[0].focus(); window.frames[0].print(); } function init() { var str="<DIV>"; for(var i=0;i<100;i++) { str+="<div>Print This "+i+"</div>"; } str+="</DIV>"; window.frames[0].document.body.innerHTML=str+"</DIV>"; } </script> </head> <body onload="init()"> <iframe width=700 height=300></iframe> <button onclick="print()">print</button> </body> </html> HOWEVER, following which exactly same as above but only the containing div is absolutely positioned, prints only the first page. <html> <head> <script> function print() { window.frames[0].focus(); window.frames[0].print(); } function init() { var str="<DIV style=\"position:absolute\">"; for(var i=0;i<100;i++) { str+="<div>Print This "+i+"</div>"; } str+="</DIV>"; window.frames[0].document.body.innerHTML=str+"</DIV>"; } </script> </head> <body onload="init()"> <iframe width=700 height=300></iframe> <button onclick="print()">print</button> </body> </html> Who could have thought of that ;)? Reproducible: Always
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Attached file testcase
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
I think this is an major feature missing.
Severity: normal → major
Was this fixed by bug 154892?
I can see the bug on branch, but not on trunk anymore, so this has become worksforme.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: