Absolutely positioned large block is printed to only one page

RESOLVED WORKSFORME

Status

()

--
major
RESOLVED WORKSFORME
13 years ago
11 years ago

People

(Reporter: bugs, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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
(Reporter)

Updated

12 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → WORKSFORME

Comment 1

12 years ago
Created attachment 245552 [details]
testcase
(Reporter)

Updated

12 years ago
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
(Reporter)

Comment 2

12 years ago
I think this is an major feature missing.
Severity: normal → major

Comment 3

11 years ago
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
Last Resolved: 12 years ago11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.