Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <?xml version="1.0"?>
3 <window id="Test for bug 540247" title="Testcase" class="reftest-wait"
4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
6 <script><![CDATA[
7 document.addEventListener("MozReftestInvalidate", runtest, false);
9 function runtest() {
10 document.getElementById('b').height = '100';
12 var sbo = document.getElementById('s').boxObject.
13 QueryInterface(Components.interfaces.nsIScrollBoxObject);
14 sbo.scrollTo(0, 1000);
16 document.documentElement.className = "";
17 }
18 ]]>
19 </script>
21 <scrollbox id="s" height="200" style="overflow: scroll;">
22 <vbox>
23 <vbox height="150" width="200" style="background: red;" id="b"/>
24 <vbox height="150" width="200" style="background: green;"/>
25 <vbox height="150" width="200" style="background: blue;"/>
26 <label value="a"/>
27 </vbox>
28 </scrollbox>
30 </window>