shadow-root-element-from-point-polyfill

1.0.0 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i shadow-root-element-from-point-polyfill

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.28 kB

Total Files

5

Last publish

Collaborators

  • jsturgill