summaryrefslogtreecommitdiffstats
path: root/layout/reftests/border-radius/scroll-1.html
blob: 30fd7fd8ffafa7520c9a37033b804af00f6cfdf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<script>
function scrollTo(v) {
  var d = document.getElementById("d");
  d.scrollTop = v;
  if (v < 100) {
    setTimeout(function() { scrollTo(v + 50); }, 400);
  } else {
    document.documentElement.removeAttribute("class");
  }
}
</script>
</head>
<body onload="scrollTo(0)">
<div style="border-radius:100px; width:300px; height:300px; overflow:hidden;" id="d">
  <div style="height:1000px;">
    <div style="margin-top:100px; height:20px; background:blue;"></div>
  </div>
</div>
</body>
</html>