summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/fieldset/fieldset-scrolled-1.html
blob: 12aac6bddb23b1933446fbcf65d1c3fc279e2afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<fieldset id="f" style="overflow:hidden; width:200px; height:200px; padding:0">
  <legend style="overflow:hidden">Legend</legend>
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
  <p>Hello Kitty
</fieldset>
<script>
f.scrollTop = 0;
function doTest() {
  f.scrollTop = 20;
  document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>
</body>
</html>