You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current specification for aspect-ratio allows explicit ratios, or the "natural" aspect ratio from a replaced element. But there is not currently any explicit way to remove the natural aspect ratio from replaced elements.
In grid & flexbox context, it is often useful to remove the natural ratio of an image, apply object-* properties, and allow the images to stretch in whatever space is available or defined by the grid-template. Currently, I'm not sure there's a way to do it without adding a wrapper, and using absolute position.
It seems like we should be able to do this with something like aspect-ratio: none?
SebastianZ, ByteEater-pl, scottkellum and Ossamajalouk