summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/incremental-scroll-ref.html
blob: 131e54ec2913621bd0cd6e3adf8e22e03b129d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<div id="target" style="background: white; overflow: scroll; width: 500px; height: 500px;
                        font-size: 40px; will-change: transform">
</div>
<script>
for (var i = 0; i < 500; i++) {
  var div = document.createElement("div");
  div.textContent = i;
  target.appendChild(div);
}
target.scrollTop = 10000;
</script>