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 <style id="s">
5 span { display: table-cell ! important }
6 </style>
7 <script>
8 function doTest() {
9 var s = document.getElementById("s");
10 s.disabled = true;
11 document.body.offsetWidth;
12 s.disabled = false;
13 document.documentElement.className = "";
14 }
15 </script>
16 </head>
17 <body onload="doTest()">
18 <span style="display: block">a b</span>
19 <span style="display: block">c d</span>
20 </body>
21 </html>