(input);
    var x = (expectedX === "nearest") ? expectedXLeft : expectedX;
    var y = (expectedY === "nearest") ? expectedYTop : expectedY;
    assert_approx_equals(window.scrollX, x, 0.5, 'scrollX');
    assert_approx_equals(window.scrollY, y, 0.5, 'scrollY');
  }, `scrollIntoView(${format_input(input)}) starting at right,bottom`);
});

function testScrollIntoView(input) {
  if (input === "omitted argument") {
    testDiv.scrollIntoView();
  } else {
    testDiv.scrollIntoView(input);
  }
}

// This form