
promise_test(async () => {
  const watcher = new ScoreWatcher;

  // Wait for the initial render to complete.
  await waitForAnimationFrames(2);

  // Shift an element that is fully clipped by its container.
  document.querySelector("#j").style.top = "200px";

  await waitForAnimationFrames(3);
  assert_equals(watcher.score, 0);
}, "Fully clipped visual rect.");

</script>


