Skip to main content
CSS Properties

object-fit

CSS property · 13 supported, 2 partial, 6 unsupported across 21 clients

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebSupported
Gmail AndroidmobileGmail MobilePartial
Gmail iOSmobileGmail MobilePartial
Outlook 365webmailOutlook WebSupported
Outlook (New)desktopOutlook WebUnsupported
Outlook ClassicdesktopMicrosoft WordUnsupported
Outlook iOSmobileOutlook MobileSupported
Outlook AndroidmobileOutlook MobileSupported
Outlook for MacdesktopWebKitSupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooUnsupported
Yahoo Mail AndroidmobileYahooUnsupported
Yahoo Mail iOSmobileYahooUnsupported
Samsung MailmobileSamsungSupported
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
Proton MailwebmailProtonSupported
AOL MailwebmailAOLUnsupported
FastmailwebmailFastmailSupported
SuperhumandesktopBlinkSupported

Client-by-client behaviour for object-fit

Fully supports object-fit (13): Gmail, Outlook 365, Outlook iOS, Outlook Android, Outlook for Mac, Apple Mail, Apple Mail iOS, Samsung Mail, Thunderbird, HEY Mail, Proton Mail, Fastmail, Superhuman.

Partial support (2): Gmail Android, Gmail iOS. Expect rendering quirks unique to each engine. Partial support typically means a subset of values, an ignored shorthand, or sanitizer-specific rewrites.

No support (6): Outlook (New), Outlook Classic, Yahoo Mail, Yahoo Mail Android, Yahoo Mail iOS, AOL Mail. Plan fallbacks for these clients before relying on object-fit in production sends.

Fixes & Workarounds

Outlook (New)

Unsupported

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Outlook Classic

Unsupported

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Yahoo Mail

Unsupported

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Yahoo Mail Android

Unsupported

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Yahoo Mail iOS

Unsupported

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

AOL Mail

Unsupported

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Gmail Android

Partial

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Gmail iOS

Partial

Use width/height attributes on <img> directly.

Before

<img src="photo.jpg" style="width: 300px; height: 200px;
            object-fit: cover;" />

After

<!-- Crop/resize image server-side to exact dimensions -->
<img src="photo-300x200.jpg" width="300" height="200"
  alt="Photo" style="display: block; border: 0;" />

Use width/height attributes instead of object-fit

Production guidance for object-fit

object-fit is a CSS property. Across the email client matrix, 13 of 15 tracked clients support it fully, 2 only partially, and 6 not at all. The clients most likely to require a workaround for this feature are Outlook (New), Outlook Classic, Yahoo Mail. Each of them needs a tailored fallback. See the per-client examples above for the specific code fix Emailens recommends.

When in doubt, ship a baseline that renders without object-fit and treat it as progressive enhancement on clients where support is verified. Emailens automatically detects cross-client divergence on this feature when you preview an email, so you can see exactly which template paths break before a campaign goes out.

Related Features

Test your email across all 21 clients

Preview rendering, catch CSS issues, and get actionable fixes. Free.

Try Emailens Free

Support data last updated Apr 27, 2026 · synced from caniemail.com via @emailens/engine.