17 Aug
2015
17 Aug
'15
7:45 p.m.
Apparently some (or most?) browsers, Firefox for instance, do uniform scaling when only one of the width or height attribute is set on an img element.
Yes, this is the right thing to do and is the only way images should generally be used on the web (since you always want uniform scaling and don't get it when setting both width and height, so only one of width or height should ever be set).