Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

document.scrollingElement

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

Subscribe to updates I use document.scrollingElement


Statistics on document.scrollingElement

Number of watchers on Github 72
Number of open issues 7
Average time to close an issue about 10 hours
Main language JavaScript
Average time to merge a PR about 3 hours
Open pull requests 2+
Closed pull requests 7+
Last commit about 3 years ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 33 KB
Homepage https://mths.be/s...
Organization / Authormathiasbynens
Contributors3
Page Updated
Do you use document.scrollingElement? Leave a review!
View open issues (7)
View document.scrollingElement activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating document.scrollingElement for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

document.scrollingElement

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

Installation

In an HTML document:

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

Its 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.

document.scrollingElement open issues Ask a question     (View All Issues)
  • over 4 years Failing tests in old browsers
  • over 4 years Make frameset tests non-flaky
  • over 4 years Test in Safari ≤ 4.1.3
  • over 4 years Test in IE ≤ 7
document.scrollingElement open pull requests (View All Pulls)
  • Make safe to include and run in a node environment
  • Do not return null in standards mode.
document.scrollingElement list of languages used
Other projects in JavaScript