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



12 years ago
2 years ago


(Reporter: musiphil, Unassigned)


Firefox Tracking Flags

(Not tracked)




(2 attachments)



12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20060909 Firefox/
Build Identifier: Mozilla Thunderbird version (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.

Comment 1

11 years ago
do you still see this problem when using the latest version of thunderbird?

wsmcloseme 2008-05-25
Assignee: mscott → nobody
Whiteboard: closeme 2008-05-25

Comment 2

11 years ago
Yes, I do. Using Thunderbird version (20080421).

Comment 3

11 years ago
Created attachment 324172 [details]
screenshot of the described symptom
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?
Ever confirmed: true
Whiteboard: closeme 2008-05-25

Comment 5

2 years ago
Created attachment 8854331 [details]
HTML file to test

Created a file to test.

I still reproduce the problem.

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