Skip to main content
Emailens
CSS Functions

clamp

CSS function · 6 supported, 3 partial, 11 unsupported across 21 clients

As of Sep 2, 2026, clamp fails or degrades in 15 of 21 email clients, treat it as progressive enhancement, never structure.

  • 3/7 webmail, 2/6 desktop, 1/8 mobile clients support clamp fully.
  • Unsupported in Outlook 365, Outlook (New), Outlook Classic, Outlook iOS and 7 more.
  • Partial in Gmail Android, Gmail iOS, Samsung Mail, behavior differs from browsers, test before relying on it.
  • Outlook Classic (Word engine, supported to at least 2029) does not fully support clamp, and its replacement changes little here; see the deprecation diff.
  • Across all clients, only 6 of 298 tracked HTML/CSS features render identically everywhere.

Source: caniemail.com (MIT), via the Emailens engine. Last tested upstream May 7, 2021, synced by Emailens Sep 2, 2026.

The clamp() function locks a value between a minimum and maximum, with a preferred middle value. It is widely used in modern responsive web design but has limited email support , Apple Mail and modern Gmail Web honor it, while Outlook on Windows ignores it entirely.

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebSupported
Gmail AndroidmobileGmail MobilePartialSee caveat 1
Gmail iOSmobileGmail MobilePartialSee caveat 1
Outlook 365webmailOutlook WebUnsupported
Outlook (New)desktopOutlook WebUnsupported
Outlook ClassicdesktopMicrosoft WordUnsupported
Outlook iOSmobileOutlook MobileUnsupported
Outlook AndroidmobileOutlook MobileUnsupported
Outlook for MacdesktopWebKitUnsupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooUnsupported
Yahoo Mail AndroidmobileYahooUnsupported
Yahoo Mail iOSmobileYahooUnsupported
Samsung MailmobileSamsungPartialSee caveat 2
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
Proton MailwebmailProtonSupported
AOL MailwebmailAOLUnsupported
FastmailwebmailFastmailUnsupported
SuperhumandesktopBlinkUnknown

Documented caveats (2)

  1. 1.Gmail Android, Gmail iOS: Partial. Not supported with non Google accounts.
  2. 2.Samsung Mail: Partial. Not supported with Microsoft accounts.

Caveats recorded by caniemail.com (MIT) and carried verbatim, one entry per wording rather than per client.

Client-by-client behaviour for clamp

Fully supports clamp (6): Gmail, Apple Mail, Apple Mail iOS, Thunderbird, HEY Mail, Proton Mail.

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

No support (11): Outlook 365, Outlook (New), Outlook Classic, Outlook iOS, Outlook Android, Outlook for Mac, Yahoo Mail, Yahoo Mail Android, Yahoo Mail iOS, AOL Mail, Fastmail. Plan fallbacks for these clients before relying on clamp in production sends.

Behaviour unverified in: Superhuman.

When to use clamp in email

  • Fluid typography that scales with viewport width while staying within readable bounds.
  • Responsive container padding that adapts to small and large screens.
  • Adaptive button sizing in modern marketing email templates.

Rendering behaviour and edge cases

  • Outlook on Windows ignores clamp() and uses the original CSS keyword fallback.
  • Gmail Web supports clamp() in recent Chromium versions; Gmail mobile is more conservative.
  • Browser-style fluid typography expectations don't always translate to email viewports.

Recommended fallback strategy

Provide a fixed pixel fallback declaration before clamp() so non-supporting clients still receive a sensible value. Keep the clamp() range conservative in email , extreme min/max values render unpredictably across mobile clients.

Fixes & Workarounds

Outlook 365

Unsupported

"clamp" is not supported in this email client.

Outlook (New)

Unsupported

"clamp" is not supported in this email client.

Outlook Classic

Unsupported

"clamp" is not supported in this email client.

Outlook iOS

Unsupported

"clamp" is not supported in this email client.

Outlook Android

Unsupported

"clamp" is not supported in this email client.

Outlook for Mac

Unsupported

"clamp" is not supported in this email client.

Yahoo Mail

Unsupported

"clamp" is not supported in this email client.

Yahoo Mail Android

Unsupported

"clamp" is not supported in this email client.

Yahoo Mail iOS

Unsupported

"clamp" is not supported in this email client.

AOL Mail

Unsupported

"clamp" is not supported in this email client.

Fastmail

Unsupported

"clamp" is not supported in this email client.

Gmail Android

Partial

"clamp" is not supported in this email client.

Gmail iOS

Partial

"clamp" is not supported in this email client.

Samsung Mail

Partial

"clamp" is not supported in this email client.

Related Features

Check your own HTML for clamp

Paste your own, or run the sample below. Analyzed in this page, with no signup and nothing stored.

Zero-Friction Engine Preview

Test your clamp layout across 21 email clients

Preview rendering, catch CSS issues, and see how clamp displays across Outlook, Gmail, and Apple Mail. Free, no account needed.

Instant live preview · No signup required · 21 email engines

Last tested upstream: · Last synced by Emailens:

caniemail.com (MIT) records May 7, 2021 as the last time clamp was tested in a real client, 5 years before this sync. Syncing copies that result forward, it does not re-test it. Carried in @emailens/engine data v0.12.2.