It works when viewing inventory through Steam (such as on the Market page), but in game, the username does NOT display for gifted items.

It just says "Gift from:" with no text after it.