When using <img src="logo.png" srcset="logo.png 1x, logo@2x.png 2x" alt="logo"> without an explicit width or height attribute, the image is expanded to double its size, instead of staying the same size.
For example, if logo.png is 100×50 and logo@2x.png is 200×100, I would expect my <img> element to stay 100×50 instead of becoming 200×100.
When using
<img src="logo.png" srcset="logo.png 1x, logo@2x.png 2x" alt="logo">without an explicit width or height attribute, the image is expanded to double its size, instead of staying the same size.For example, if
logo.pngis 100×50 andlogo@2x.pngis 200×100, I would expect my<img>element to stay 100×50 instead of becoming 200×100.