Is it possible in CSS to have an image that has originally specified size (= no relayout when it loads), both (independent) max-width and max-height, and has a border (which precludes object-fit and all those shenanigans?)|
It seems that when max-width and max-height both kick in, they basically override aspect ratio to become something alien. object-fit allows the image to keep aspect ratio “inside itself”, but then that ruins the border which wraps the resulting pillar- or letterboxing.