Closed Bug 122414 Opened 23 years ago Closed 22 years ago

CSS properties on 'body' has no affect in HTML mail

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: jonasj, Assigned: mscott)

Details

Send yourself a text/html email containing the following lines:

<html>
<head>
<style type='text/css'>
body {font-family: Arial, sans-serif; font-size: 0.81em;}
</style>
</head>
<body>
<p>Some text</p>
</body>
</html>

The words "Some text" will be shown in your default font, not as 0.81em Arial.
If the line

body {font-family: Arial, sans-serif; font-size: 0.81em;}

was changed to

p {font-family: Arial, sans-serif; font-size: 0.81em;}

, or if the text was inside a table, and the line was changed to

td {font-family: Arial, sans-serif; font-size: 0.81em;}

, "Some text" would be 0.81em Arial. This leads to different fonts being used
for pieces of text that was intended to be shown in the same font, and that is
annoying.
I can no longer reproduce this.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
verified per reporters comments 
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.