<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee" -->

---
title: New in Chrome 154: iframes that automatically resize...
description: Chrome 154 introduces responsively-sized iframes, allowing an iframe to automatically resize to match the intrinsic size of its embedded document. This...
canonical: https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New in Chrome 154: iframes that automatically resize themselves to their content | daily.dev
og:description: Chrome 154 introduces responsively-sized iframes, allowing an iframe to automatically resize to match the intrinsic size of its embedded document. This...
og:url: https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee
og:image: https://api.daily.dev/og/posts/tG1hEZ2eE.png
og:image:alt: New in Chrome 154: iframes that automatically resize themselves to their content
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Bram.us](https://daily.dev/sources/bram)** · 2 min read · 19 upvotes · 2 comments

## Summary

Chrome 154 introduces responsively-sized iframes, allowing an iframe to automatically resize to match the intrinsic size of its embedded document. This requires a two-way opt-in: the embedder sets the frame-sizing CSS property (content-height or content-width) on the iframe, and the embedded document includes a meta tag (responsive-embedded-sizing) to allow size communication to the parent, restricting it by origin via allow-origins. The embedded page calls window.requestResize() to notify the parent of new size after load. This is aimed at use cases like third-party comment widgets, social media embeds, and multi-step forms in iframes. Full details are covered in a companion article on developer.chrome.com.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.bram.us/2026/09/23/responsive-iframes>

## Questions this post answers

### How do I make an iframe automatically resize to fit its content in Chrome 154?

Chrome 154 supports responsively-sized iframes through a two-way opt-in mechanism. The embedding page sets the frame-sizing CSS property to content-height or content-width on the iframe element, while the embedded document adds a meta tag named responsive-embedded-sizing with content allow-origins=* (or a restricted origin list) in its head. The embedded document then calls window.requestResize() to communicate size changes to the parent after the initial page load.

_daily.dev surfaces browser platform updates like this for developers building iframe-based embeds._

### What is the frame-sizing CSS property used for in Chrome?

The frame-sizing CSS property, introduced with responsive iframes in Chrome 154, is set on an iframe element with a value of content-height or content-width to let the iframe automatically size itself based on the intrinsic size of the document loaded inside it. It works together with a meta tag opt-in on the embedded document's side, useful for embedding comment widgets, social embeds, or multi-step forms.

_Developers tracking new CSS properties like frame-sizing can follow browser releases via daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 1 upvotes

> Thanks for the working form demo! I'd love a version with validation errors and translated labels changing the frame height.

**@ristotoldsep** · 1 upvotes

> If this retires the iframe-height script, it deserves a tiny parade.

## Similar posts on daily.dev

- [Iframes that finally fit their content](https://daily.dev/posts/iframes-that-finally-fit-their-content-oioaktzfn) · Lobsters · 1 upvotes · 0 comments
- [Chrome for Developers](https://daily.dev/posts/chrome-for-developers-pe6x5bz9l) · Chrome Developers · 53 upvotes · 3 comments
- [What’s \!important \#5: Lazy-loading iframes, Repeating corner-shape Backgrounds, and More](https://daily.dev/posts/what-s-important-5-lazy-loading-iframes-repeating-corner-shape-backgrounds-and-more-cwjtt1lwv) · CSS-Tricks · 3 upvotes · 0 comments
- [New to the web platform in June](https://daily.dev/posts/new-to-the-web-platform-in-june-ego8ywxmf) · web.dev · 0 upvotes · 0 comments
- [417: Iframe Allow Attribute Saga](https://daily.dev/posts/417-iframe-allow-attribute-saga-0a9mpthwo) · CodePen · 0 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#google-chrome](https://daily.dev/tags/google-chrome)

[View this post on daily.dev](https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New in Chrome 154: iframes that automatically resize themselves to their content","url":"https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee"},"datePublished":"2026-09-22T22:17:09.308Z","dateModified":"2026-09-22T22:17:51.373Z","description":"Chrome 154 introduces responsively-sized iframes, allowing an iframe to automatically resize to match the intrinsic size of its embedded document. This...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/936e2781dd146d00e465a84a6e95e165?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/936e2781dd146d00e465a84a6e95e165?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Bram.us","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Bram.us","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/3db2116954be44df873ec24cf0e03d14","url":"https://daily.dev/sources/bram"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":19},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"css,google-chrome","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Bram.us","item":"https://daily.dev/sources/bram"},{"@type":"ListItem","position":3,"name":"New in Chrome 154: iframes that automatically resize themselves to their content"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee","comment":[{"@type":"Comment","text":"Thanks for the working form demo! I’d love a version with validation errors and translated labels changing the frame height.","datePublished":"2026-09-27T21:36:38.758Z","url":"https://daily.dev/posts/tG1hEZ2eE#c-PypKbDZ4F","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"If this retires the iframe-height script, it deserves a tiny parade.","datePublished":"2026-09-29T10:36:41.909Z","url":"https://daily.dev/posts/tG1hEZ2eE#c-TvnhnGVgZ","author":{"@type":"Person","name":"Risto Tõldsep","url":"https://daily.dev/ristotoldsep","image":"https://media.daily.dev/image/upload/s--i6RRoxB7--/f_auto,pg_1/v1794383659/avatars/avatar_ryDlbifZ1EuRuh3g51ryC?_a=BAMAMiiw0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/new-in-chrome-154-iframes-that-automatically-resize-themselves-to-their-content-tg1hez2ee#faq","mainEntity":[{"@type":"Question","name":"How do I make an iframe automatically resize to fit its content in Chrome 154?","acceptedAnswer":{"@type":"Answer","text":"Chrome 154 supports responsively-sized iframes through a two-way opt-in mechanism. The embedding page sets the frame-sizing CSS property to content-height or content-width on the iframe element, while the embedded document adds a meta tag named responsive-embedded-sizing with content allow-origins=* (or a restricted origin list) in its head. The embedded document then calls window.requestResize() to communicate size changes to the parent after the initial page load. daily.dev surfaces browser platform updates like this for developers building iframe-based embeds."}},{"@type":"Question","name":"What is the frame-sizing CSS property used for in Chrome?","acceptedAnswer":{"@type":"Answer","text":"The frame-sizing CSS property, introduced with responsive iframes in Chrome 154, is set on an iframe element with a value of content-height or content-width to let the iframe automatically size itself based on the intrinsic size of the document loaded inside it. It works together with a meta tag opt-in on the embedded document's side, useful for embedding comment widgets, social embeds, or multi-step forms. Developers tracking new CSS properties like frame-sizing can follow browser releases via daily.dev."}}]}
```

