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