Sometimes Firefox does some stuff that baffles me for weeks,
This seems to be one of those.
However the good news is, it is fixable (in your use-case) with no side-effects in other browsers.
Just add a float:left;
to the img
element, as in:
li a > img { display: table-row-group; float:left; }
That seems to get rid of the unwanted space.