Repository navigation
Open
Labels
focus-area-proposalFocus Area Proposal
Description
Description
Embedding third-party content (e.g., payment widgets, comment sections, social posts, live charts, embedded demos) is one of the most fundamental architecture patterns on the web.
However, <iframe> elements have historically been unable to automatically size themselves to the natural dimensions of their embedded documents without producing scrollbars or requiring brittle postMessage() polyfills .
Responsive Iframes (part of CSS Box Sizing Module Level 4) introduces a standardized, security-preserving mechanism for seamless frame sizing and consists of three parts:
- Embedding Opt-in: The parent document specifies
frame-sizing: content-height | content-width | content-block-size | content-inline-size | noneon the<iframe> - Embedded Opt-in: The embedded document includes
<meta name="responsive-embedded-sizing">to explicitly authorize sharing its layout intrinsic size - Dynamic Updates: The embedded document can trigger re-measurements via
window.requestResize()
Specification
web-feature
frame-sizing
Test Links
Additional Signals
- Blink / Chromium:
- Gecko / Firefox:
- Not implemented
- Standards Position: no position
- WebKit / Safari:
- Not implemented
- Standards Position: no position
Reacted by Valtteri Laitinen, John P. Green, Gustav Hansen, Fabian Bühler, nilaallj, Gianluca Frediani, Santi, Jayden Pearse, Sébastien Lorber, mike douges and 29 more
Reacted by Jayden Pearse, nhducit, Patrick George Wyndham Smith, CreeJee, Atif Aiman, Marco Campos, Corbin Crutchley, Anthony Ciccarello, phantomxx29474 and Goutham Ponnada
Metadata
Metadata
Assignees
Labels
focus-area-proposalFocus Area Proposal
Type
Projects
- StatusShow more project fieldsTodo
Activity
github-actions commentedon Sep 22, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
Feature Responsive iframes
frame-sizingCSS property sets the size of an<iframe>element to that of it contents, to avoid scrolling in the iframe. Embedded documents allow this with the<meta name="responsive-embedded-sizing">element and request resizing in the embedding page by callingwindow.requestResize().frame-sizingCSS property,