<!DOCTYPE html>
<title>
  Updating the scroll-snap-type of a snap container should make it resnap accordingly.
</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap/#re-snap" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
  position: absolute;
  margin: 0;
}

#scroller {
  height: 500px;
  width: 500px;
  overflow: hidden;
  scroll-snap-type: none;
}

#y-target {
  width: 300px;
  height: 300px;
  top: 100px;
  le