Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` ...
[gecko.git] / layout / reftests / invalidation / 540247-1.xhtml
blob50fc80368d3e84523da3ff5f49088d3f24b18ae9
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 // 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);
17 function finish() {
18 document.getElementById('b').height = '100';
19 document.documentElement.className = "";
21 ]]>
22 </script>
24 <scrollbox id="s" height="200" style="overflow: scroll;">
25 <vbox>
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;"/>
29 <label value="a"/>
30 </vbox>
31 </scrollbox>
33 </window>