The text position is different between inline SVG, and SVG in an <img> element.
Created attachment 355373 [details] Testcase
Other browsers have the same rendering, so this seems to be correct behavior.