lLeft, 900);
  assert_equals(scroller.scrollTop, 900);
}, "No snapping occurs if there is no valid snap position");

test(() => {
  scroller.style.scrollSnapType = "x mandatory";

  for (const target of document.querySelectorAll(".child")) {
    target.scrollSnapAlign = "start none";
  }

  // Scroll to where the first child is in view.
  scroller.scrollTo(100, 100);
  assert_equals(scroller.scrollLeft, 100);
  assert_equals(scroller.scrollTop, 100);

  // Scroll to where the second child is in view.
  scro