Open Bug 1863157 Opened 3 years ago Updated 2 years ago

HTML email messages displayed in back text on black background

Categories

(Thunderbird :: Message Reader UI, enhancement)

Thunderbird 115
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: jochen.kuepper, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15

Steps to reproduce:

Display html version of emails send by, e.g., Exchange or Zimbra, in dark mode.

This is TB 115 on macOS 13.6.

Part of the problem is the fact that the messages contain font specs for back text but now background color spec. However, other MUAs manage to display these emails in a readable format:

--=_d7d84316-9eea-4f96-892a-7fea252e45d9
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: arial, helvetica, sans-serif; font-s=
ize: 12pt; color: #000000"><div data-marker=3D"QUOTED_TEXT"><div style=
=3D"font-family:'arial' , 'helvetica' , sans-serif;font-size:12pt;color:#00=
0000"><div><div style=3D"font-family:'arial' , 'helvetica' , sans-serif;fon=
t-size:12pt;color:#000000">

...

Actual results:

When displaying the html variant of the email messages, the content text is displayed as back text on black/dark background.

Expected results:

TB should display the text in a readable color, e.g., white, on the default dark background.

I frequently encounter the same problem. Just now with TB 115.6.0 under Pop!_OS 22.04 LTS. The sequence of events was:

  1. I send a note using TB that is composed as white text on black background.

  2. A response is sent back to me from the iCloud webmail. The text (both the new text and the original message from me) appears as black text on white background.

  3. When I click on Reply, the new email message is composed as white text on black background, so all of my text is readable but the quoted text from the respondent is still in black text, so it ends up being black text on black background. The reason is that their text is hardcoded to be black text, as in:

<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
Love,</div>

My suggestion is that either TB should preserve the color scheme of the message that is being responded to, or if it is going to change the background color, then it should also change any text colors that now match the new background color.

Here is the html header that somehow specified that the response message was to be on a white background:

Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=

<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">

You need to log in before you can comment on or make changes to this bug.