test_bug1157097.html (943B)
1 <!DOCTYPE html> 2 <title>Test for bug 1157097</title> 3 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 4 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"> 5 <style> 6 .blue { color: blue; } 7 .red { color: red; } 8 .inline-block { display: inline-block; } 9 </style> 10 <body onload=run()> 11 <p><span id=s1 class=blue><b></b></span><span id=s2 class=red><b></b></span></p> 12 <script> 13 function run() { 14 window.windowUtils.postRestyleSelfEvent(document.querySelector("p")); 15 document.querySelectorAll("span")[0].className = ""; 16 document.querySelectorAll("b")[0].className = "inline-block"; 17 document.querySelectorAll("span")[1].className = "blue"; 18 window.windowUtils.postRestyleSelfEvent(document.querySelectorAll("b")[1]); 19 20 document.body.offsetTop; 21 22 ok(true, "finished (hopefully we didn't assert)"); 23 SimpleTest.finish(); 24 } 25 26 SimpleTest.waitForExplicitFinish(); 27 </script>