See fiddle:
https://jsfiddle.net/dgt26upk/
The text is NOT being cut off by the <svg />
element. It seems to be an arbitrary cut of based on the actual <text />
element.
Is there a way to fix this, perhaps using filters(clip mask) and using a <rect />
rather than a <text />
element? Or is there an easier way?