Closed Bug 287702 Opened 20 years ago Closed 19 years ago

Print Preview not working with page-break-after and position:absolute/fixed testcase

Categories

(Core :: Printing: Output, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: martijn.martijn, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

This is a follow-up from bug 285310.

The testcase I'll attach will show the bug.
Basically position: fixed or position:absolute is not working well with
page-break-after: always;
Attached file Testcase
It's an interesting question -- what should that testcase do?  On the one hand,
all the fixed-pos elements should be on every page.  On the other hand, there's
that page-break stuff.

Perhaps page-break should simply be ignored on fixed-pos boxes?
Notice that there are no absolutely positioned DIV tags. When I was searching for a fix for this problem, it was claimed that the problem was with "position:absolute" was the problem and that setting "position:static" would resolve it.  This was not the case.
Follow-up to Comment #3: I am using Mozilla version 1.7.12, and I am also experiencing this bug in Firefox 1.5 (Windows 2000; this printing bug was reported to me by a user running Windows XP).

The problem: When I print DIV that contains multiple pages of text, only the first page of text is printed--the rest gets cut off. At first, I thought that this was related to the "position:absolute" printing bug, but no such positioning styles were used. I even tried forcing "position:static" in the print stylesheet, but to no avail.

Please see the HTML sample document in Comment #3, noting the inline print stylesheet that I have specified.
This bug is about position:fixed and page-break properties.  The testcase in comment 3 doesn't use either one.  So it has nothing to do with this bug.
As in, if you're seeing a problem, file a bug on it.  Don't post unrelated testcases in other bugs.
"User Agents must apply these properties to block-level elements in the normal flow of the root element."
CSS 2.1, section 13.3.1 on page-break-* properties
http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside

"position: fixed" elements (and "position: absolute" elements too) are not in the normal flow of the root element by definition. I'd be surprised if this bug was valid after all. My 2 cents.
Ah, good catch.  It didn't use to say that... ;)

I doubt that we enforce that, fwiw.  We probably should (and need a new bug on that).
(In reply to comment #8)
> Ah, good catch.  It didn't use to say that... ;)
> 
> I doubt that we enforce that, fwiw.  We probably should (and need a new bug on
> that).
Ok, I filed bug 326685 for that.

Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: