Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <script>
5 function doTest() {
6 var n = document.getElementById("n");
7 for (var i = 0; i < 5; ++i) {
8 n.style.cssFloat = "left";
9 document.body.offsetWidth;
10 n.style.cssFloat = "";
11 document.body.offsetWidth;
12 }
13 document.documentElement.className = "";
14 }
15 </script>
16 </head>
18 <body onload="doTest()">
19 <table border="5">
20 <tr>
21 <td id="n">TD</td>
22 </tr>
23 </table>
24 </body>
25 </html>