1.0.0 • Published 7 years ago
shadow-root-element-from-point-polyfill v1.0.0
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();1.0.0
7 years ago