1. document.elementFromPoint()

    Given coordinates for a point relative to the viewport, returns the element that a click event would be dispatched at if the user were to click the point (in other words, the element that hit-testing would find).

  2. document api: elementfrompoint

  3. shadowroot api: elementfrompoint