Things That Can Break aspect-ratio in CSSCSS aspect-ratio property is useful for flexible designs without fixed dimensions, but can be overridden if both height and width are set on an element.