Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<script src="apz_test_native_event_utils.js"></script>
<script src="apz_test_utils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<style>
.container {
  background-color: #eee;
  width: 200px;
  height: 50px;
  border: 1px dotted black;
  overflow: visible;
  margin-top: 200px;
}
</style>
<div class="container"></div>
<script>
  let text = '<div id="target" style="width: 100%; height: 10px; background-color: red; position: relative; top: 60px; z-index: -1"></div>';
  for (let i = 0; i < 200; i++) {
    text += "Text text text text text text text text text text text text text text text text\n";
  }
  document.querySelector(".container").innerHTML = text;
  // Silence SimpleTest warning about missing assertions by having it wait
  // indefinitely. We don't need to give it an explicit finish because the
  // entire window this test runs in will be closed after the main browser test
  // finished.
  SimpleTest.waitForExplicitFinish();
</script>
</html>