Since r11872, it is no longer possible to build tram electrification across multiple tiles of tram track; there is now an error saying that the ways are not connected. Building heavy rail electrification on tram tracks works, though.
EDIT: Fixed in r11908.