scrollIntoView: Skip overflow:hidden elements

Fixes #5355