A polyfill for
document.scrollingElement as defined in the CSSOM specification.
In an HTML document:
It’s recommended to place this right before the closing
The polyfill can be used in
frameset HTML documents (in that case, place the
<script> in the
<head>) or in XML documents as well.
The polyfill has been tested in the following browsers:
This project is available under the MIT license.