chromium/third_party/blink/web_tests/fast/scrolling/background-paint-scrolled-out-and-in.html

<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
#box {
  position: absolute;
  left: 300px;
  top: 150px;
  width: 50px;
  height: 50px;
  background-color: yellow;
}
</style>
Same as background-paint-scrolled.html but scrolls the changed box out of view then back in.
<div id="box"></div>
<div style="height: 2000px"></div>
<script>

if (window.testRunner)
  testRunner.waitUntilDone();

runAfterLayoutAndPaint(function() {
  var box = document.querySelector("#box");
  scrollTo(0, 1000);
  box.style.backgroundColor = "green";
  runAfterLayoutAndPaint(function() {
    scrollTo(0, 0);
    if (window.testRunner)
      testRunner.notifyDone();
  });
});

</script>