Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumCSSaspect-ratioSingle-choice MCQ

An <img> has an aspect-ratio set but only a width, and the source image has a different intrinsic ratio. Which ratio wins for the rendered box?

img { width: 400px; height: auto; aspect-ratio: 16 / 9; }