Closed Bug 1679878 Opened 3 years ago Closed 3 years ago

Media Queries no longer work in HTML emails

Categories

(Thunderbird :: Untriaged, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1659362

People

(Reporter: remi+bugzilla, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

  1. Get HTML code at https://www.caniemail.com/tests/css-media.html
  2. Send the HTML to your inbox (using for example a test service like Putsmail.com)
  3. Open email in Thunderbird 78.5.0

Actual results:

Every test line in the email appears in red, indicating that media queries are not supported. Inspecting the email with the developer tools show that all media queries styles have been removed. (See attachment media-queries-removed.png).

Expected results:

Relevant test line should have appeared in green. Inspecting the email with the developer tools should show all media queries.

There's a pref you can set to enable them.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Keywords: regression

Does that mean that we should consider Thunderbird no longer support media queries by default?

Also, for those interested, I've been able to enable them locally by adding a user.js file in my ~/Library/Thunderbird/profiles/example.default/ with the following content:

user_pref("mail.html_sanitize.drop_conditional_css", false);
Flags: needinfo?(mkmelin+mozilla)

At the moment it requires setting that pref yes. I've proposed we don't do don't set that by default.
(You don't need a user.js file, all it takes is going to the config editor.)

Flags: needinfo?(mkmelin+mozilla)

Thanks for your answer! (I've used a user.js file because I haven't been able to find the config editor. I found your other post linking to http://kb.mozillazine.org/Modify_Thunderbird_settings but I can't even find the Tools > Options menu on macOS 11.)

On Mac/Linux it's Edit | Preferences. Then user the search box in there if you don't see it.

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

Attachment

General

Creator:
Created:
Updated:
Size: