Closed Bug 277035 Opened 20 years ago Closed 20 years ago

[FIX] page break is not removed by display:none

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mikecaines, Assigned: MatsPalmgren_bugz)

Details

(Keywords: testcase)

Attachments

(2 files)

See attached testcase. The second DIV's style attribute contains "page-break-before:always" and "display:none" but print layout still generates two pages. Exhibits same behaviour in quirks and standards compliance modes. Both MSIE Win and Safari generate only two pages.
Attached file testcase
(In reply to comment #0) > ...Both MSIE Win and Safari > generate only two pages. That is they generate ONE page.
Assignee: nobody → mats.palmgren
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
Summary: page break is not removed by display:none → [FIX] page break is not removed by display:none
Attached patch Patch rev. 1Splinter Review
Attachment #170350 - Flags: superreview?(dbaron)
Attachment #170350 - Flags: review?(dbaron)
Comment on attachment 170350 [details] [diff] [review] Patch rev. 1 Get rid of the null-check of |display| and move the display-none check that you're adding to the beginning of the expression, and r+sr=dbaron.
Attachment #170350 - Flags: superreview?(dbaron)
Attachment #170350 - Flags: superreview+
Attachment #170350 - Flags: review?(dbaron)
Attachment #170350 - Flags: review+
Rearranged the expression according to comment 4... Checked in 2005-01-16 07:30 PDT -> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: