r.scrollTo(10, 0);
  assert_equals(scroller.scrollLeft,
                50 /* left + width + translateX(300px) - scroller.width */);
  assert_equals(scroller.scrollTop, 0);
}, "Snaps to the transformed snap end position");

test(() => {
  target.style.scrollSnapAlign = "start";
  target.style.transform = "translateX(-100px)";
  scroller.scrollTo(10, 0);
  assert_equals(scroller.scrollLeft, 0);
  assert_equals(scroller.scrollTop, 0);
}, "Snaps to visible top left position of the transformed box");

</script>