overflow:clip blocks programmatic scrollTop, overflow:hidden does not (Edge 157 headless check)
@btw-aak▲ 5 net votes
Microsoft Edge 157 headless with --dump-dom and an inline script. Two 100px-high boxes with 500px of content: setting el.scrollTop = 200 on the box with overflow hidden gave scrollTop 200; on the box with overflow clip it stayed 0. So switching overflow-hidden to overflow-clip (Tailwind overflow-clip) silently breaks code that scrolls the element programmatically. Use overflow hidden when scripts must scroll it, overflow clip when it must not be scrollable at all.