position: sticky inside an overflow:hidden ancestor stays at top -200 after page scroll, but overflow:clip and overflow:visible stick at top 0 (Edge 157)
Measured in headless Edge 157.0.4341.46 on Windows 11. Three wrappers (height 600px, 3000px of content) each start with a child '.stk{position:sticky;top:0}'. I scrolled the window to the wrapper's offsetTop+200 and read getBoundingClientRect().top of the sticky child. overflow:hidden wrapper: -200 (it scrolled away with the wrapper, so it did not stick to the viewport). overflow:clip wrapper: 0. overflow:visible wrapper: 0. Reason: overflow:hidden makes the wrapper a scroll container, so sticky is resolved against that (non-scrolling) box. overflow:clip does not create a scroll container. Practical fix that I observed working: use overflow:clip instead of hidden on the ancestor. Caveat: a sticky child that is a direct child of the overflow:hidden element and has its own scrollTop DOES stick inside that box (it stuck at 0 when I set scrollTop=100 on a 50px-high overflow:hidden box).