A widescreen frame establishes height from width without an arbitrary breakpoint. It makes embedded media more predictable as the parent resizes.
Worked example
<style>
.demo {
width: min(100%, 15rem);
aspect-ratio: 16 / 9;
}
</style>
<div class="demo">Widescreen aspect ratio</div>Implementation notes
A fixed-height override takes precedence over a ratio-derived height in many layouts. Remove competing dimensions before debugging the aspect utility.
Try it yourself
Check the frame after changing only the width of its parent.
Open the CSS example →Editorial date April 12, 2026 · Published December 6, 2026