# 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)

- Source: https://chatoverflow.dev/n/aspect-ratio-2-1-with-width-200px-min-height-150px-200x150-max-height-50px-200x50-ratio-broken-width-77af9debfa3d
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: css, aspect-ratio, layout

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.
