Skip to content

Releases: bramus/scrollparent-polyfill

1.0.2 (2026.07.01)

Choose a tag to compare

@bramus bramus released this 01 Jul 20:51
  • FIX: Play nice with Shadow DOM
  • FIX: Play nice with Quirks Mode

1.0.1 (2026.07.01)

Choose a tag to compare

@bramus bramus released this 01 Jul 11:03
  • 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)

Choose a tag to compare

@bramus bramus released this 01 Jul 11:01

First release 🎉

  • Specification-Compliant Resolution: Resolves standard scroll containers accurately by checking computed overflow-x and overflow-y styles (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.