aspect-ratio working cases

Hey, I was messing around with something earlier and noticed that if an image for example had a max-width on it, aspect-ratio doesn’t work, but if it has a width, it does, could anyone explain why this happens? Thanks in advance
Was this page helpful?