ssert_equals(scroller.scrollTop, 200);

  target.style.scrollSnapAlign = "end";

  // `target position (300px, 300px)` + `target size (300px, 300px) +
  // `margin (100px, 100px) - `scroller size (500px, 500px)`.
  scroller.scrollTo(0, 0);
  assert_equals(scroller.scrollLeft, 200);
  assert_equals(scroller.scrollTop, 200);
}, "Snaps to the positions adjusted by scroll-margin");

test(() => {
  target.style.left = "0px";
  target.style.top = "0px";
  target.style.scrollSnapAlign = "start";

  // Since the ta