sticky-position
sticky-position copied to clipboard
Favor polyfill option
I have added a favorPolyfill option that cause the polyfill function instead of the native implementation of position: sticky regardless of whether it is supported or not. This is useful if you want to ensure that you're using a consistent algorithm for positioning elements in a sticky way, or if you encounter odd behavior when using position: sticky.