Closed
Bug 429476
Opened 17 years ago
Closed 16 years ago
CSS Page Break Ignored On First Page After Floating and Clearing
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 132035
People
(Reporter: guille.phillips, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
After floating a block element and then subsequently clearing this, if a page break appears after this, it is ignored. The page break is only ignored on the first page, subsequent pages correctly break. The problem appears in both Print Preview and printing. Here's a typical example to reproduce the behaviour:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Page Break Float Test</title>
</head>
<body>
<div style="float:left;">Page1Text</div>
<div style="clear:left;">Clear1</div>
<div style='page-break-after:always;'>Page Break</div>
<div style='height:100em'>Page2Title</div>
<div style="float:left;">Page2Text</div>
<div style="clear:left;">Clear2</div>
<div style='page-break-after:always;'>Page Break</div>
<div>Page3</div>
</body>
</html>
In the above example, Page 1 and Page 2 appear on the same page, with Page 3 appearing on a separate page (this is incorrect). If the first float or clear is removed, then Page 2 appears on it's own page as expected.
There is no difference whether the styles are inline or not and whether page-break-before or page-break-after is chosen. Inserting elements between the clear and the page break, makes no difference.
This is a big problem in floated designs, as there seems to be no way to break the first page, I've resorted to printing a blank page at the start (this works).
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Updated•17 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 2•16 years ago
|
||
Bug 318022 appears to concern a reference test.
As this also concerns floats, marking this bug as a duplicate of bug 132035.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago → 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•