shadow-root-element-from-point-polyfill
v1.0.0
Published
Attempts to provide missing ShadowRoot.elementFromPoint implementation in IE11.
Readme
ShadowRoot.getSelection Polyfill
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.
Installation
npm install shadow-root-element-from-point-polyfillor
yarn add shadow-root-element-from-point-polyfillUsage
import { patch } from 'shadow-root-element-from-point-polyfill';
patch();