| <html> |
| <head> |
| <script src="repaint.js" type="text/javascript"></script> |
| <script type="text/javascript"> |
| function repaintTest() |
| { |
| document.getElementById("z").lastChild.data='Excellent! Test'; |
| } |
| </script> |
| </head> |
| <body onload="runRepaintTest()"> |
| If the red outline at the bottom of the div extends all the way to the scrollbar, the test passes. If it stops short, then the test has failed, and an incomplete repaint has occurred. |
| <div id="t" style="overflow-y: scroll; outline: none; width: 80px; height: 69px;"> |
| <br><br><br><br><br><br><br><br><br><span id="z" style="outline: 3px solid red;">Failed Test</span> |
| </div> |
| <script> |
| document.getElementById("t").scrollTop = 91; |
| </script> |
| </body> |
| </html> |