title: How set scroll state of hidden element
body: <p>So basically I have a <code>div</code> element which has vertical scroll. I can change its state from JS using scrollTop property of <code>div</code> element and it works fine, but however if I scroll to the very bottom, then hide that element (display: hidden), its scrollTop returns 0 as if it is on top, but when I show it the scroll is at the bottom and scrollTop shows non-0 value. The issue here is that I can't reset scroll position to top while div element is hidden, it restores scroll position when showing. Is there any way to modify/reset actual scroll position which is restored after unhiding element, or is it stored somewhere in browser which is not accessible from JS?</p>