3 <window id=
"Test for bug 540247" title=
"Testcase" class=
"reftest-wait"
4 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
7 document.addEventListener(
"MozReftestInvalidate", runtest, false);
10 // Make sure that the effects of the scroll are painted to the screen before
11 // shrinking the size of the scrolled frame.
12 window.addEventListener(
"MozAfterPaint", finish, false);
13 var scrollbox = document.getElementById('s');
14 scrollbox.scrollTo(
0,
1000);
18 document.getElementById('b').height = '
100';
19 document.documentElement.className =
"";
24 <scrollbox id=
"s" height=
"200" style=
"overflow: scroll;">
26 <vbox height=
"150" width=
"200" style=
"background: red;" id=
"b"/>
27 <vbox height=
"150" width=
"200" style=
"background: green;"/>
28 <vbox height=
"150" width=
"200" style=
"background: blue;"/>