layout/generic/test/bug421839-2-page.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:8c45a666b788
1 <html>
2 <head>
3 </head>
4 <body style="position: absolute;">
5 <iframe id="a"></iframe>
6 <iframe></iframe>
7 <script>
8 function tripleclick(){
9 var wu = SpecialPowers.getDOMWindowUtils(window);
10 wu.sendMouseEvent('mousedown', 100, 100, 0, 1, 0);
11 setTimeout(tripleclick,20);
12 }
13 setTimeout(tripleclick,200,0, 0);
14
15 function doe2() {
16 document.body.setAttribute('style', 'position: absolute;');
17 document.body.offsetHeight;
18 document.getElementById('a').setAttribute('style', 'position: absolute; direction: rtl; ');
19 setTimeout(doe3,200);
20 }
21
22 function doe3() {
23 document.getElementsByTagName('*')[2].setAttribute('style', 'unicode-bidi: inherit; ime-mode: disabled; font-family: Al Bayan; ');
24 }
25 setTimeout(doe2,500,0);
26
27 setTimeout(function(){window.location.reload()}, 1000);
28
29
30 function designmodes(i){
31 if (i>=0)
32 {
33 try {
34 window.frames[i].document.designMode='on';
35 window.frames[i].document.execCommand('inserthtml', false, 'tesxt ');
36 window.frames[i].document.designMode='off';
37 }
38 catch(e) {}
39 }
40 else {
41 i = window.frames.length-1;
42 }
43 i--;
44 setTimeout(designmodes,50,i);
45 }
46 setTimeout(designmodes,500,window.frames.length-1);
47
48 function doe2(i) {
49 document.body.style.position == 'absolute' ? document.body.style.position = '' : document.body.style.position = 'absolute';
50 setTimeout(doe2,200,i);
51 }
52 setTimeout(doe2,500,0);
53 </script>
54 </body>
55 </html>

mercurial