div with an aspect ratio of 3 / 7 that fills its parent the best can, acting something like object-fit: contain. Unfortunately, object-fit: contain doesn't seem to work for non-replaced elements.div with an aspect-ratio with a fixed width or height, but I can't seem to make it work once it becomes responsive.