4 ms·
I don't think so. But both Firefox and Chrome have implemented this: when your img tag contains both height and width attributes, the browsers use those to cal
by Tomte 7y ago
I don't think so.
But both Firefox and Chrome have implemented this: when your img tag contains both height and width attributes, the browsers use those to calculate the aspect ratio, and use those to reserve the correct amount of space when rendering the page.