Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <script> |
michael@0 | 5 | |
michael@0 | 6 | function z() |
michael@0 | 7 | { |
michael@0 | 8 | var q = document.getElementById("q"); |
michael@0 | 9 | |
michael@0 | 10 | for (var r = 0; r < 100; ++r) { |
michael@0 | 11 | // dump(r + "\n"); |
michael@0 | 12 | q.style.width = r + "px"; |
michael@0 | 13 | document.documentElement.offsetHeight; |
michael@0 | 14 | } |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | </script> |
michael@0 | 18 | </head> |
michael@0 | 19 | <body onload="z();"> |
michael@0 | 20 | |
michael@0 | 21 | <div style="font-family: monospace;" id="q"><div id="w" style="word-spacing: 1px">AAA <span style="white-space: pre-line; font-weight: 500;">BB C |
michael@0 | 22 | </span></div></div> |
michael@0 | 23 | |
michael@0 | 24 | </body></html> |