1.0.0 • Published 5 years ago

shadow-root-element-from-point-polyfill v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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-polyfill

or

yarn add shadow-root-element-from-point-polyfill

Usage

import { patch } from 'shadow-root-element-from-point-polyfill';
patch();