document.elementFromPoint()
This function uses our existing hit testing code to determine the topmost element at the given coordinates relative to the viewport.