scrollViewportToShowTarget() helper
- Click the "Go to blue" button.
Expected: The viewport is scrolled to fully reveal the 80x80px blue square in the bottom-right corner.
- Scroll the viewport right and down just a little bit.
- Make sure the blue square is right in the bottom-right corner of the topmost div containing it. There should be only one set of scrollbars visible.
- Click "Go to red".
Expected: The viewport is scrolled to fully reveal the 80x80px red square in in the top area of the page.
- Scroll the viewport top and left just a little bit.
- Make sure the red square is right in the bottom-right corner of the topmost div containing it. There should be only one set of scrollbars visible.
- Click "Go to green".
Expected: The viewport is scrolled to fully reveal the 80x80px green square in in the bottom-left corner of the page.
- Scroll the viewport to the bottom and left just a little bit.
- Make sure the green square is right in the bottom-right corner of the topmost div containing it. There should be only one set of scrollbars visible.
- Click "Go to blue" to repeat the cycle.