1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/bug421839-2-page.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +<html> 1.5 +<head> 1.6 +</head> 1.7 +<body style="position: absolute;"> 1.8 +<iframe id="a"></iframe> 1.9 +<iframe></iframe> 1.10 +<script> 1.11 +function tripleclick(){ 1.12 +var wu = SpecialPowers.getDOMWindowUtils(window); 1.13 +wu.sendMouseEvent('mousedown', 100, 100, 0, 1, 0); 1.14 +setTimeout(tripleclick,20); 1.15 +} 1.16 +setTimeout(tripleclick,200,0, 0); 1.17 + 1.18 +function doe2() { 1.19 +document.body.setAttribute('style', 'position: absolute;'); 1.20 +document.body.offsetHeight; 1.21 +document.getElementById('a').setAttribute('style', 'position: absolute; direction: rtl; '); 1.22 +setTimeout(doe3,200); 1.23 +} 1.24 + 1.25 +function doe3() { 1.26 +document.getElementsByTagName('*')[2].setAttribute('style', 'unicode-bidi: inherit; ime-mode: disabled; font-family: Al Bayan; '); 1.27 +} 1.28 +setTimeout(doe2,500,0); 1.29 + 1.30 +setTimeout(function(){window.location.reload()}, 1000); 1.31 + 1.32 + 1.33 +function designmodes(i){ 1.34 +if (i>=0) 1.35 + { 1.36 +try { 1.37 +window.frames[i].document.designMode='on'; 1.38 +window.frames[i].document.execCommand('inserthtml', false, 'tesxt '); 1.39 +window.frames[i].document.designMode='off'; 1.40 +} 1.41 +catch(e) {} 1.42 +} 1.43 +else { 1.44 +i = window.frames.length-1; 1.45 + } 1.46 + i--; 1.47 +setTimeout(designmodes,50,i); 1.48 +} 1.49 +setTimeout(designmodes,500,window.frames.length-1); 1.50 + 1.51 +function doe2(i) { 1.52 +document.body.style.position == 'absolute' ? document.body.style.position = '' : document.body.style.position = 'absolute'; 1.53 +setTimeout(doe2,200,i); 1.54 +} 1.55 +setTimeout(doe2,500,0); 1.56 +</script> 1.57 +</body> 1.58 +</html>