chromium/third_party/blink/web_tests/fast/events/autoscroll-upwards-propagation-no-scroll-iframe.html

<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script type="text/javascript">
  setPrintTestResultsLazily();
  jsTestIsAsync = true;
  description("This test ensures that if an autoscroll starts from within a " +
    "scrollable div in a non-scrollable iframe, it does not propagate to its " +
    "document body.");

  function finishTest() {
    eventSender.mouseUp();
    var iframe = document.getElementById('noScrolliframe');
    var iframeDoc = iframe.contentDocument;

    if (iframeDoc.scrollingElement.scrollTop == 0 && iframeDoc.scrollingElement.scrollLeft == 0) {
      testPassed("Document didn't scroll.");
    } else {
      testFailed("Document scrolled although overflow:hidden.");
    }
    document.getElementById('noScrolliframe').style.display = 'none';
    finishJSTest();
  }

  window.onload = function () {
    var iframe = document.getElementById('noScrolliframe');
    var iframeDoc = iframe.contentDocument;

    var element = iframeDoc.getElementById('select');
    var x = iframe.offsetLeft + element.offsetLeft + 7;
    var y = iframe.offsetTop + element.offsetTop + 7;
    eventSender.dragMode = false;
    eventSender.mouseMoveTo(x, y);
    eventSender.mouseDown();
    eventSender.mouseMoveTo(x + 800, y);
    eventSender.mouseMoveTo(x + 800, y + 500);
    window.requestAnimationFrame(finishTest);
  }
</script>

<iframe id="noScrolliframe" scrolling="no" src="resources/page-with-scrollable-div.html"></iframe>