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 | reftest-viewport-w="600" reftest-viewport-h="400" |
michael@0 | 4 | reftest-displayport-w="800" reftest-displayport-h="1000" |
michael@0 | 5 | reftest-no-sync-layers> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title></title> |
michael@0 | 8 | <script type="text/javascript"> |
michael@0 | 9 | function initialPaint() { |
michael@0 | 10 | window.removeEventListener("MozAfterPaint", initialPaint, false); |
michael@0 | 11 | setTimeout(type, 0); |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | function type() { |
michael@0 | 15 | var box = document.getElementById("input"); |
michael@0 | 16 | box.value = "Hello kitty"; |
michael@0 | 17 | window.addEventListener("MozAfterPaint", repaint, false); |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | function repaint() { |
michael@0 | 21 | window.removeEventListener("MozAfterPaint", repaint, false); |
michael@0 | 22 | setTimeout(finish, 0); |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | function finish() { |
michael@0 | 26 | document.documentElement.removeAttribute("class"); |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | window.addEventListener("MozAfterPaint", initialPaint, false); |
michael@0 | 30 | </script> |
michael@0 | 31 | </head> |
michael@0 | 32 | |
michael@0 | 33 | <body style="width: 600px; height: 400px;"> |
michael@0 | 34 | <div style="position: absolute; left: 0px; top: 0px; |
michael@0 | 35 | width=600px height=600px"> |
michael@0 | 36 | <div style="position: absolute; left: 0px; top: 0px; |
michael@0 | 37 | width: 600px; height: 400px; |
michael@0 | 38 | background-color: green;"></div> |
michael@0 | 39 | <div style="position: absolute; left: 0px; top: 400px; |
michael@0 | 40 | width: 100px; height: 100px;"> |
michael@0 | 41 | <input type="text" id="input" size="20" style="border: none;"></input> |
michael@0 | 42 | </div> |
michael@0 | 43 | <div style="position: absolute; left: 0px; top: 500px; |
michael@0 | 44 | width: 600px; height: 100px; |
michael@0 | 45 | background-color: yellow;"></div> |
michael@0 | 46 | </div> |
michael@0 | 47 | </body> |
michael@0 | 48 | </html> |