I've encountered an odd issue with Chrome related to image resizing when the window size changes.
When I have Chrome snapped fullscreen in Windows (double-clicking to snap), and then unsnap the window, the images are not scaling correctly back to their original size.
For instance, I utilize the following CSS code to resize images to fit 100% of the available height while maintaining the width:
img{
height: 100%
width: auto;
}
While the images maintain their aspect ratio when Chrome is snapped fullscreen, if I unsnap the window, only the height will adjust, leaving the width unchanged as shown below:
In contrast, when using Internet Explorer, the images resize properly when unsnapping the window.
Do you know why Chrome is behaving this way? Could there be an issue with my CSS?
If more code is needed, please let me know.
Thank you.