Totally agree with David, on CSS needing a selector to know if a
position: sticky; element is doing its sticky thing or not.
Ideally there would be a
I love it when there is a solution that isn’t some massive polyfill or something. In this case, a few lines of
top: -1px in the CSS.