frame-sizing
Limited availability63% of usersExperimental
Lets an iframe take its height or width from the page inside it, so it doesn't need an inner scrollbar. The page inside has to agree by including <meta name="responsive-embedded-sizing">. Without that, nothing changes. The default, auto, keeps the usual fixed iframe size. It works in Chrome and Edge 154 and later so far.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- replaced elements
- Animation type
- discrete
Quick example
iframe.embed {
width: 100%;
border: 0;
frame-sizing: content-height;
}Values
autocontent-widthcontent-heightcontent-block-sizecontent-inline-sizeframe-sizing browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage63%of people can use this37% use a browser without it.
Browsers
154+
154+Mobile
154+Android