Conversation

I’m actually surprised it didn’t do this already. So if I understand it correctly: <img height=50px width=75px...> <style> img { width: 100%; height: auto } </style> CSS doesn’t currently use 50px/75px to calc height and needs img downloaded, but with this it can use them.
Quote Tweet
Safari Tech Preview 99 now sets the default aspect ratio of images based on the width and height attributes, thanks to work from Igalia (webkit.org/b/254669).
And already on in Firefox and Chrome (so guessing new Edge too) so once Safari does ship this that’s all the major browsers.
Quote Tweet
Replying to @cramforce @AMPhtml and @igalia
Computing aspect ratio from width/height was enabled by default in Chrome 79. chromestatus.com/feature/569526 I would guess it's enabled in Edge 79 as well, and so presumably when the next version of Safari ships, this will be enabled by default in all browsers.