Skip to main content

Our email CSS engine is open source. Give it a star on GitHub 

Emailens

Thunderbird email CSS: what breaks, and what to write instead

Thunderbird is tested on 261 of 300 features: 228 work, 12 partial, 21 not supported. The other 39 are untested.

Works 228 · Partial 12 · Not supported 21 · Untested 39 · of 300 · Tested on fewer than 270 of 300 features

Gecko · desktop · prefers-color-scheme: not supported

The checker needs a computer screen.

See what breaks ↓

Thunderbird opens with a free account.

A free account opens all 21 clients and keeps your checks for 7 days. Create a free account →

@emailens/engine 0.18.22 · data last changed 10 Nov 2026

What works in Thunderbird and breaks elsewhere

58 features work in Thunderbird and in 6 or fewer of the other 20 clients, so they need a fallback.

39 features are untested in Thunderbird. They are left out here, not counted as not supported.

All 56

Not listed: <base>, <body>, structural tags; the table below has them.

What to write instead

2 features Thunderbird does not fully support have a written fix. See them in the table ↓

animation

The fix for Thunderbird

Replace CSS animation with an animated GIF

after
<!-- Use an animated GIF for the effect -->
<img src="https://example.com/badge-animated.gif"
  width="60" height="24" alt="New!"
  style="display: inline-block; border: 0;" />
Show the original
before
<style>
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
  .badge { animation: pulse 2s infinite; }
</style>
<span class="badge">New!</span>

The checker needs a computer screen.

Paste your email and see what Thunderbird does to it.

The checker needs a computer screen.

Dark mode in Thunderbird

Live preview: Thunderbird Dark Message Mode applies its own full color rewrite; @media (prefers-color-scheme: dark) is not honoured.

How to target Thunderbird

Selectors that single out Thunderbird, from the community list the engine ships (howtotarget.email). Copy one and replace .your-class-name.

css
.moz-text-html .your-class-name {
  /* Replace this comment with your styles */
}

This class is placed on a div inserted between the body and the wrapper so you can also do something like body > div > .wrapper .your-class-name.

css
@media screen and (-moz-device-pixel-ratio) {
  .your-class-name {
    /* Replace this comment with your styles */
  }
}

@media is not supported in Thunderbird. Check this selector on your email before relying on it.

Build one for several clients →

Before you send to Thunderbird

  • Always test the image-blocked rendering, Thunderbird is the most common client where this affects everyday users.
  • Verify behaviour in the user's installed theme (light, dark, system) to catch contrast collapses early.
  • Avoid relying on auto-linking, Thunderbird does not auto-detect phone numbers or addresses, so include explicit <a href> wrappers.

Every feature in Thunderbird

Show

HTML Elements · 10 of 48 not supported or partial here

HTML Attributes · 7 of 22 not supported or partial here

HTML & Email Structure · 2 of 8 not supported or partial here

CSS At-Rules · 7 of 10 not supported or partial here

Pseudo-Elements · 0 of 6 not supported or partial here

Pseudo-Classes & Selectors · 1 of 34 not supported or partial here

CSS Functions · 0 of 8 not supported or partial here

CSS Properties · 6 of 164 not supported or partial here

How Thunderbird renders email

Thunderbird uses Mozilla's Gecko rendering engine, the same engine that powers Firefox. It supports <style> blocks, flexbox, grid, positioning and web fonts, though a font on a remote host loads only once the reader allows remote content. Its surprise is media queries: caniemail's tests found them unsupported, including prefers-color-scheme.

JavaScript
All JavaScript is stripped for security. Don't rely on any client-side scripting in emails.
form elements
Form elements render visually but do not submit data. Interactive email patterns won't work in Thunderbird.
External resources
Thunderbird blocks external images by default until the user clicks 'Show remote content'. Design for image-blocked scenarios with good alt text.
  • Thunderbird uses Gecko, the same engine that powers Firefox, which gives it some of the strongest CSS support of any desktop email client. Modern flexbox, grid, and CSS custom properties all render correctly inside the reading pane.
  • External resources (images, web fonts) are blocked by default until the user explicitly opts in. Plan for a default-blocked rendering and supply meaningful alt text on every image-bearing <img>.
  • Dark-mode CSS written for Apple Mail in a prefers-color-scheme query does not carry over: Thunderbird does not support the query. Media queries in general are unsupported, so the layout must work at a single width.
  • The reading pane has a configurable max-width set by the user. Designs that rely on a hard 600px content frame can render with extra horizontal whitespace on wide displays.

Get new email CSS fixes by email.

caniemail (MIT) via @emailens/engine 0.18.22 · data last changed 10 Nov 2026