đ New in High Baseline Support: document.elementFromPoint() and document.elementsFromPoint()
July 15, 2022
caniuse ¡ mdn ¡ [spec]([âhttps://drafts.csswg.org/cssom-view-1/#dom-document-elementfrompointâ, âhttps://drafts.csswg.org/cssom-view-1/#dom-document-elementsfrompointâ])
The document.elementFromPoint() and document.elementsFromPoint() methods find the top-most element at a given point in the viewport, or all elements at a given point in the viewport, respectively.