How overflow: hidden affects sticky positioning
Yes, overflow: hidden can break position: sticky. This happens because a sticky element only sticks within the boundaries of its nearest scrollable ancestor. When an ancestor has overflow: hidden, it creates a new clipping and scrolling context that confines the sticky element’s behavior to that container.
overflow: hidden establishes a new containing block for sticky elements, so the element can only stick within that box’s visible area.
Once the sticky element reaches the boundary of the ancestor with overflow: hidden, it gets clipped and stops being sticky.
This behavior ensures that sticky elements don’t overlap or escape their scrollable container.
To preserve sticky behavior, the parent element should have overflow: visible (or no overflow property set).