Open Bug 354594 Opened 18 years ago Updated 2 years ago

Style definitions of table cells (TD, TH) affect headers in printing

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

People

(Reporter: musiphil, Unassigned)

References

()

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: Mozilla Thunderbird version 1.5.0.7 (20060909)

If you print a message has an HTML, which contains CSS definitions for TD and TH elements, they affect not only the HTML page attached but the message headers in printing.

An attachment should not affect how the container (the mail/news message) is printed.

Reproducible: Always

Steps to Reproduce:
1. Open a compose window.
2. Choose "Attach > Web Page", and enter the URL above.
3. Save the message as a Draft.
4. Highlight the message in the Draft folder.
5. Choose "File > Print Preview".
Actual Results:  
Because the HTML page has "th, td { text-align: right; }" in its style definition, the printed header (From, Date, Subject, etc.) is also aligned to the right.
If the HTML page contained more exotic settings, they would affect the headers too.

Expected Results:  
The headers should not be affected by the style definitions in an attachment.

The same thing will probably happen if the CSS defintion is not in an attachment but directly in the body. For example, save an HTML message as a Draft, quit Thunderbird, manually modify the Draft file to add the style definitions, and load and print-preview it in Thunderbird to see the result.
do you still see this problem when using the latest version of thunderbird?
  http://getthunderbird.com/

wsmcloseme 2008-05-25
Assignee: mscott → nobody
Whiteboard: closeme 2008-05-25
Yes, I do. Using Thunderbird version 2.0.0.14 (20080421).
Confirming based on screenshot, and new information being provided.

I'm not sure if this is an editor or core, or the exact Thunderbird component though. Seems to be printing related?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: closeme 2008-05-25
Attached file HTML file to test
Created a file to test.

I still reproduce the problem.

Thunderbird 45.8.0
Windows 7 64-bit
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: