finally stopped using that hacky padding-top trick for responsive containers. it's much cleaner to just use aspect-ratio: 16 / 9; on the img tag itself so the browser actually knows the space before the asset loads. helps with
layout shifts cumulative layout shift.
img {width: 100%;aspect-ratio: 4 / 3;object-fit: cover;}does anyone still use the padding hack for anything?