In the following tests, Chrome resizes the gridified element’s height to match its contents. Firefox will make the gridified element as tall as it would need to be if the images were not scaled down using the width
property, unless the images are scaled down with an explicit width (the third test). If you check the box before a gridified element, the images will resume their auto
size. Note that in the second test, Firefox will expand the gridified element’s height to contain the images, then return the height to its original distance once you uncheck the box.
(Testcase derived from this example from Rachel Andrew’s 24ways article.)