Html – Combining object-fit: contain and hard-coded aspect-ratio on img
I am trying to combine object-fit: contains with aspect-ratio: 1.5 /* hardcoded number */ on an img. The image remains square, however: // Javascript for example resizing panels only. const leftPanel = document.querySelector('.left-panel'); const rightPanel = document.querySelector('.right-panel'); const panelHandle =…