Issue: element.scrollBy is broken when using behavior: 'smooth'

It seems like the problem only happens when a element.ScrollBy with behavior: 'smooth' is used on an element with CSS attribute overflow (or overflow-x) set to hidden

Confirmed on:

scrollBy when using the behavior: 'smooth' and overflow: hidden

scrollBy when using the behavior: 'smooth' and overflow: scroll

scrollBy when using the behavior: 'instant' and overflow: hidden

scrollBy when using the behavior: 'auto' and overflow: hidden