Custom Elements: Extend SVG - Real coordinates on mouse events

You don’t need Custom Elements for this. You can use a Mutation Observer and look for elements with certain characteristics and bind events to those elements that extracts the information you need and publish it as a custom event that you would then capture in Elm.