Closed Bug 508321 Opened 15 years ago Closed 8 years ago

element with position:absolute after element with page-break-before:always not shown when printing

Categories

(Core :: Printing: Output, defect)

1.9.1 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 267029

People

(Reporter: natong, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

I have two copies of <div><input type=text></div> separate into two pages.
See my codes at http://biz.naddalim.com/receipt/input.htm

In print preview, the input field of 2nd page won't show.
I try to add at lease one <br> or one character before it and it work!

<span style="page-break-before:always; font-size:1px; color:transparent;">.</span>

The also post this bug in the http://forums.mozillazine.org/viewtopic.php?f=9&t=1400025&p=7150405#p7150405



Reproducible: Always

Steps to Reproduce:
Below are my test html codes:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
.page1    {background-color:green; width:700px; height:300px; margin:0; padding:0; border:0; position:relative;}
.page2    {background-color:red;   width:700px; height:300px; margin:0; padding:0; border:0; position:relative;}
</style>
</head>
<body style="margin:0; padding:0; border:0;">
<div class=page1>
<input type="text" value="page1" style="top:050px; left:50px; width:500px; position:absolute; padding:2px 0; font:96px arial; border:1px solid blue;" />
</div>
<span style="page-break-before:always;"></span>
<div class=page2>
<input type="text" value="page2" style="top:050px; left:50px; width:500px; position:absolute; padding:2px 0; font:96px arial; border:1px solid blue;" />
</div>
</body>
</html>

Actual Results:  
In print preview, the input field of 2nd page won't show.

Expected Results:  
It should be show the input field of 2nd page.

I try to add at lease one <br> or one character before it and it work!

<span style="page-break-before:always; font-size:1px; color:transparent;">.</span>

The also post this bug in the http://forums.mozillazine.org/viewtopic.php?f=9&t=1400025&p=7150405#p7150405
Version: unspecified → 3.5 Branch
Attached file reduced testcase
Confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

There are quite a lot of position:absolute printing bugs. This might be a dupe of one of them.

I've changed the bug summary based on my reduction of the original testcase.
Status: UNCONFIRMED → NEW
Component: General → Printing: Output
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → printing
Summary: input type=text with position:absolute; can't print on 2nd page without at lease one <br> code → element with position:absolute after element with page-break-before:always not shown when printing
Version: 3.5 Branch → 1.9.1 Branch
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: