Closed Bug 142062 Opened 23 years ago Closed 20 years ago

When table spans multiple pages, background of first cell is printed as background for page 2 and beyond

Categories

(Core :: Printing: Output, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 294836

People

(Reporter: rod, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1) Gecko/20020417 BuildID: 2002041711 Go to Page Setup and select "Print Background (colors & images)" and then print the document. Page 2 and beyond have color in all table cells, whereas only the cells on the left should be colored. Hey as long as you'll be printing a few copies of my resume, could you spread it around? :-) Reproducible: Always Steps to Reproduce: 1. Browse to http://sunsetsystems.com/rodsresume.html 2. Select File / Page Setup 3. Check "Print Background (colors & images)" 4. Select File / Print and print it Actual Results: Table cells are dark (colored) on page 2 and beyond of the printout. Expected Results: Only the cells on the left should be colored. Happens for me in both Win2K and Gentoo Linux, with various HP LaserJet printers. Also happened in 0.9.9.
Seeing this on Linux and solaris as well.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I see it on windows as well....
I see similar problems on my webpage, although the effect is more subtle. -Todd http://toddj.net/cv/cv_printVersion.php
-->
Assignee: rods → dcone
Priority: -- → P2
Target Milestone: --- → mozilla1.3alpha
I see this in Firefox version 1.0 preview release. Affects Print Preview and the printing itself. I'm attaching an example, "a.htm"
This bug appears when a printing a table which splits across a page boundry. If the table's first cell on this new page has a different background color than the document, Mozilla uses this background color for the entire page. This bug appears in numerous versions of Mozilla and Firefox (it has been around for over two years that I've seen).
Summary: Background color wrong when printing page 2 and beyond → When table spans multiple pages, background of first cell is printed as background for page 2 and beyond
Attached file testcase
Moved from bug 166410
Keywords: testcase
Assignee: dcone → core.printing
QA Contact: sujay
Priority: P2 → --
Target Milestone: mozilla1.3alpha → ---
This is not just tables: I see the same thing in a document with a <pre> element on the second or third page with "background-color" set. A workaround is to specify "background-color" for the <body>.
The problem has been occuring on my end too, with the table cell colors bleeding into the background color for the next few pages, if the table is cut off. However, as pointed out, setting the bgcolor attribute for the body tag is a working workaround. Even for the test cases that are attached to this bug. It works on that and my pages too.
*** Bug 288155 has been marked as a duplicate of this bug. ***
Attached file Simpler test case
I've been trying to create the simplest test case I can. This case exibits the bug well on a Mac.
Comment on attachment 179195 [details] Simpler test case <html> <head> <title>Simple Test Case</title> </head> <body> <table border="1" width="100%"> <tr height="1000"><td>&nbsp;</td></tr> <tr bgcolor="#FFFF00"><td>&nbsp;</td></tr> </table> </body> </html>
*** Bug 306855 has been marked as a duplicate of this bug. ***
All URLs and testcases WFM, I can reproduce the problem in a 2005-08-28 build, so this was fixed by bug 294836 *** This bug has been marked as a duplicate of 294836 ***
Status: NEW → RESOLVED
Closed: 20 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: