scr
scrollingelement
npm i scrollingelement
scr

scrollingelement

A polyfill for document.scrollingElement as defined in the CSSOM specification.

by Mathias Bynens

1.5.2 (see all)License:MITTypeScript:Not Found
npm i scrollingelement
Readme

document.scrollingElement

A polyfill for document.scrollingElement as defined in the CSSOM specification.

Installation

In an HTML document:

<script src="scrollingelement.js"></script>

It’s recommended to place this right before the closing </body> tag.

The polyfill can be used in frameset HTML documents (in that case, place the <script> in the <head>) or in XML documents as well.

Browser support

The polyfill has been tested in the following browsers:

Acknowledgements

Thanks to Diego Perini (@diegoperini) for his getScrollingElement implementation, and for allowing me to re-use it as part of this polyfill.

Authors

This polyfill was written by Mathias Bynens and Simon Pieters, with help from contributors.

License

This project is available under the MIT license.

Downloads/wk

5.2K

GitHub Stars

128

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

5

OPEN ISSUES

6

OPEN PRs

1
VersionTagPublished
1.5.2
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate