Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | |
michael@0 | 5 | <style> |
michael@0 | 6 | .fl:first-line { } |
michael@0 | 7 | .inh { position: inherit; } |
michael@0 | 8 | .abs { position: absolute; } |
michael@0 | 9 | body { visibility: hidden; } |
michael@0 | 10 | </style> |
michael@0 | 11 | |
michael@0 | 12 | <script> |
michael@0 | 13 | |
michael@0 | 14 | function boom() |
michael@0 | 15 | { |
michael@0 | 16 | x = document.getElementById("x"); |
michael@0 | 17 | y = document.getElementById("y"); |
michael@0 | 18 | |
michael@0 | 19 | x.setAttribute('class', "fl abs"); |
michael@0 | 20 | y.setAttribute('class', "inh"); |
michael@0 | 21 | setTimeout(boom2, 5); |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | function boom2() |
michael@0 | 25 | { |
michael@0 | 26 | y.setAttribute('class', "abs"); |
michael@0 | 27 | document.body.offsetWidth; |
michael@0 | 28 | document.documentElement.className = ""; |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | </script> |
michael@0 | 32 | |
michael@0 | 33 | </head> |
michael@0 | 34 | |
michael@0 | 35 | <body onload="setTimeout(boom, 5);"> |
michael@0 | 36 | <div id="x"> |
michael@0 | 37 | <p id="y">foo</p> |
michael@0 | 38 | </div> |
michael@0 | 39 | </body> |
michael@0 | 40 | |
michael@0 | 41 | </html> |