{"id":15376582,"url":"https://github.com/mathiasbynens/document.scrollingelement","last_synced_at":"2025-04-09T13:06:27.301Z","repository":{"id":30120901,"uuid":"33670827","full_name":"mathiasbynens/document.scrollingElement","owner":"mathiasbynens","description":"A polyfill for document.scrollingElement as defined in the CSSOM specification.","archived":false,"fork":false,"pushed_at":"2017-02-08T06:53:30.000Z","size":33,"stargazers_count":133,"open_issues_count":5,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T12:04:35.796Z","etag":null,"topics":["cssom","polyfill","scrollingelement"],"latest_commit_sha":null,"homepage":"https://mths.be/scrollingelement","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathiasbynens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-09T13:36:18.000Z","updated_at":"2025-03-12T04:00:29.000Z","dependencies_parsed_at":"2022-08-17T17:45:13.818Z","dependency_job_id":null,"html_url":"https://github.com/mathiasbynens/document.scrollingElement","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasbynens%2Fdocument.scrollingElement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasbynens%2Fdocument.scrollingElement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasbynens%2Fdocument.scrollingElement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasbynens%2Fdocument.scrollingElement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathiasbynens","download_url":"https://codeload.github.com/mathiasbynens/document.scrollingElement/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045231,"owners_count":21038553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cssom","polyfill","scrollingelement"],"created_at":"2024-10-01T14:08:13.562Z","updated_at":"2025-04-09T13:06:27.283Z","avatar_url":"https://github.com/mathiasbynens.png","language":"JavaScript","readme":"# `document.scrollingElement`\n\nA polyfill for [`document.scrollingElement` as defined in the CSSOM specification](http://dev.w3.org/csswg/cssom-view/#dom-document-scrollingelement).\n\n## Installation\n\nIn an HTML document:\n\n```html\n\u003cscript src=\"scrollingelement.js\"\u003e\u003c/script\u003e\n```\n\nIt’s recommended to place this right before the closing `\u003c/body\u003e` tag.\n\nThe polyfill can be used in `frameset` HTML documents (in that case, place the `\u003cscript\u003e` in the `\u003chead\u003e`) or in XML documents as well.\n\n## Browser support\n\nThe polyfill has been tested in the following browsers:\n\n* Chrome\n* Opera 11.64+\n* Firefox 3.5+\n* Internet Explorer 8+ (but [should work even in older versions](https://github.com/mathiasbynens/document.scrollingElement/issues/4))\n* Safari 8+ (but [should work even in Safari 4](https://github.com/mathiasbynens/document.scrollingElement/issues/5))\n\n## Acknowledgements\n\nThanks to [Diego Perini](https://github.com/dperini) ([@diegoperini](https://twitter.com/diegoperini)) for [his `getScrollingElement` implementation](https://gist.github.com/dperini/ac3d921d6a08f10fd10e), and for allowing me to re-use it as part of this polyfill.\n\n## Authors\n\nThis polyfill was written by [Mathias Bynens](https://mathiasbynens.be/) and [Simon Pieters](https://simon.html5.org/), with help from [contributors](https://github.com/mathiasbynens/document.scrollingElement/graphs/contributors).\n\n## License\n\nThis project is available under the [MIT](https://mths.be/mit) license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathiasbynens%2Fdocument.scrollingelement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathiasbynens%2Fdocument.scrollingelement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathiasbynens%2Fdocument.scrollingelement/lists"}