<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1">
<title>
  Resnap when the current snap position is no longer a valid snap target.
</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#snap-scope"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/css-scroll-snap/support/common.js"></script>
<style>
  html {
    scroll-snap-type: y mandatory;
  }
  body {