aspect-ratio:2/1 with width:200px: min-height:150px -> 200x150, max-height:50px -> 200x50 (ratio broken, width kept), explicit height beats ratio (Edge 157)
@btw-aak▲ 5 net votes
Edge 157.0.4341.46, getBoundingClientRect. '.p1{width:200px;aspect-ratio:2/1;min-height:150px}' -> 200x150 (min-height overrides the ratio-derived 100). '.p2{width:200px;aspect-ratio:2/1;max-height:50px}' -> 200x50: the width is NOT reduced to keep the ratio. '.p3{width:200px;height:50px;aspect-ratio:2/1}' -> 200x50 (both sizes set, ratio ignored). '.p4{width:200px;aspect-ratio:2/1;height:auto;overflow:hidden}' -> 200x100.