cd /news/developer-tools/new-in-chrome-154-iframes-that-autom… · home › topics › developer-tools › article
[ARTICLE · art-140120] src=bram.us ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

New in Chrome 154: iframes that automatically resize themselves to their content

Chrome 154 adds support for responsively-sized iframes, letting an iframe size itself to the intrinsic dimensions of its embedded document via a two-way opt-in. The embedder sets the frame-sizing CSS property to auto, content-height, or content-width on the iframe, while the embedded document includes a meta tag named responsive-embedded-sizing with allow-origins to permit size communication and calls window.requestResize() to report a new size. Firefox and Safari do not support the feature, with tracking bugs 2035008 and 314713 respectively.

read2 min views2 publishedSep 26, 2026
New in Chrome 154: iframes that automatically resize themselves to their content
Image: source

~

Chrome 154 adds support for responsively-sized iframes, letting an <iframe> size itself based on the intrinsic size of its embedded document. This is perfect for seamlessly embedding third-party comment widgets, varying-height social media embeds, or any other type of embed that uses an <iframe>.

~

# The Code

To make this work there is a two-way opt-in:

  • The embedder (e.g. index.html ) needs to set theframe-sizing CSS property with a value ofauto ,content-height , orcontent-width (or its logical variants) on theiframe .
  • The document loaded in the <iframe> (e.g.iframe.html ) needs to include a meta tag to indicate that it’s OK to communicate its size the parent embedder.

In code:

/* In styles.css for index.html */
iframe {
  frame-sizing: content-height;
  width: 100%;
}
php
<!-- In the iframe.html’s head -->
<meta name="responsive-embedded-sizing" content="allow-origins=*">

The content’s size is communicated from the embedded document after page load. To communicate a new size, the document in the frame must call window.requestResize();

Use allow-origins to limit which origins the document communicates its size info to.

~

# Demo

Here’s a demo that contains a form which is an <iframe>. Whenever you go to a next step of the form, the <iframe> resizes itself to its contents … if your browser suppports frame-sizing that is.

Because the iframe resizes itself, the form is seamlessly embedded, without any scrollbar appearing at all.

~

# Browser Support

💡 Although this post was originally published in September 2026, the list below is constantly being updated. Last update: September 23, 2026.

Support for responsively size iframes is this:

  • Chromium (Blink)

✅ Supported in Chrome 154

  • Firefox (Gecko)

❌ No Support. Follow Bug 2035008 to stay up-to-date.

  • Safari (WebKit)

❌ No Support. Follow Bug 314713 to stay up-to-date.

~

# Learn More

Get all the details about responsive iframes on developer.chrome.com, in this article I co-authored: Responsive iframes in Chrome 154 →

~

🔥 Like what you see? Want to stay in the loop? Here's how:

I can also be found on 𝕏 Twitter and 🐘 Mastodon but only post there sporadically.

── more in #developer-tools 4 stories · sorted by recency
── more on @chrome 154 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/new-in-chrome-154-if…] indexed:0 read:2min 2026-09-26 · —