Releases: bramus/scrollparent-polyfill
Releases · bramus/scrollparent-polyfill
Release list
1.0.2 (2026.07.01)
1.0.1 (2026.07.01)
- NEW: Includes an IIFE build
- NEW: Fully tested against WPT
- FIX: Fixes 4 failing WPTs
- PASS Element with no box has null scrollParent.
- PASS scrollParent of element fixed to root is null.
- PASS scrollParent of root is null.
- PASS scrollParent of scrolling element is null.
1.0.0 (2026.05.29)
First release 🎉
- Specification-Compliant Resolution: Resolves standard scroll containers accurately by checking computed
overflow-xandoverflow-ystyles (auto,scroll,hidden). - Absolute & Fixed Support: Correctly skips non-containing blocks for absolute and fixed positioned elements to find their true scrolling ancestor.
- CSS Overflow Propagation: Accounts for UA-specific overflow propagation from the
<body>and<html>elements to the viewport. - Prototype Polyfill: Automatically polyfills
Element.prototype.scrollParent(). - Flexible API: Can be used as an imported standalone utility or called directly on DOM element prototypes.
- Fully Typed: Written in TypeScript with standard types exported.
- ESM Support: Built as an ES Module.