[2.2] Unexpected behavior of Element.scrollIntoView()

I've encountered a bit of strangeness with the scrollIntoView function. Basically, if you call scrollIntoView on an element that is already visible, you get scrolled down some additional amount, whereas I would expect no scrolling to occur in this case.

I've attached a simple test case that should demonstrate the issue.

I'd like to know whether this is the expected behavior before I implement a workaround.