1. Element.scrollIntoViewIfNeeded()

    If the element is fully within the visible area of the viewport, it does nothing. Otherwise, the element is scrolled into view. A proprietary variant of the standard `Element.scrollIntoView()` method.

  2. element api: scrollintoviewifneeded