Closed Bug 164289 Opened 22 years ago Closed 22 years ago

Table cell background image behind foreground transparent image not printed

Categories

(Core :: Printing: Output, defect, P2)

x86
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 141656
Future

People

(Reporter: niemayer, Assigned: dcone)

References

()

Details

Attachments

(1 file)

If you have a table cell that contains a (more or less) transparent image, and
there's a background image behind that, Mozilla does not even try to render that
background image on the nsRenderingContext* used for printing - the
nsRenderingContext::DrawImage() function is only called for the foreground
image. And yes, "print background" was enabled :-)

Sample HTML code (you can of course replace the image links):

<html>
<body>
<table cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td style="background-image:url(http://www.lycos.de/L/G/N/stau2.jpg)">
   <img src="http://www.lycos.de/L/Z/grahm.gif" alt="" border="0" >
  </td>
 </tr>
</table>
</body>
</html>

This I think is especially strange as the background image is displayed in the
print preview...
Maybe I should additionally mention that this bug cannot be noticed when using
the ordinary nsRenderingContextPS, as that one doesn't support transparent
images correctly at all.

But any sane nsRenderingContext* used for printing suffers :-)
Confirming this behaviour on Build ID 2002-08-23.

For clarification:
Steps to reproduce:
1. Open the attached testcase in a browser window
2. Select "File" | "Print Preview"
3. Note that an empty box is displayed
4. Open the "Page Setup" dialog and check "Print background ..."
5. Note that the picture is now displayed in what was a white box
6. Print and note that the results are the same as step 3

Expected Result:
The background image is printed with the foreground

Actual Result:
Only the foreground image is printed
Status: UNCONFIRMED → NEW
Ever confirmed: true
->
Assignee: rods → dcone
Priority: -- → P2
Target Milestone: --- → Future

*** This bug has been marked as a duplicate of 141656 ***
Status: NEW → RESOLVED
Closed: 22 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: