The aim of this test is checking if the helper function works for targets residing in a child document (window) within an <iframe>. There are 3 elements that interact in this test:
Expected:
The viewport should scroll so the red (target) square (and its green border). It should be revealed and completely visible in the viewport. Most certainly, it will land directly in the bottom–right corner of the viewport.
Expected:
Basically, nothing should happen (nothing should get scrolled).
Expected:
The target should always be scrolled back and become completely visible. Mind the green border, it should become visible too. The location of the target on the screen will vary, depending on where you "hide" in its scrollable ancestors.