tyle.setProperty("scroll-snap-type", "x mandatory");
  assert_equals(scroller.scrollLeft, 100);
  assert_equals(scroller.scrollTop, 0);

  scroller.style.setProperty("scroll-snap-type", "y mandatory");
  assert_equals(scroller.scrollTop, 100);
}, "Changing the scroller's snap type axis should make it resnap.");
</script>
