Provides missing ShadowRoot.elementFromPoint
implementation in ShadyDom.
It should be safe to apply in any browser using ShadyDom, as ShadowRoot will be patched only if it is present and missing the elementFromPoint
method, but the patch is only known to work in IE 11.
npm install shadow-root-element-from-point-polyfill
or
yarn add shadow-root-element-from-point-polyfill
import { patch } from 'shadow-root-element-from-point-polyfill';
patch();