| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 window.onload = function() { | 6 window.onload = function() { |
| 7 runRepaintTest(); | 7 runRepaintAndPixelTest(); |
| 8 }; | 8 }; |
| 9 | 9 |
| 10 function repaintTest() { | 10 function repaintTest() { |
| 11 var target = document.getElementById('target'); | 11 var target = document.getElementById('target'); |
| 12 target.style.visibility = 'visible'; | 12 target.style.visibility = 'visible'; |
| 13 getComputedStyle(target).color; | 13 getComputedStyle(target).color; |
| 14 target.style.top = '300px'; | 14 target.style.top = '300px'; |
| 15 } | 15 } |
| 16 </script> | 16 </script> |
| 17 </head> | 17 </head> |
| 18 <body> | 18 <body> |
| 19 <div id="target" | 19 <div id="target" |
| 20 style="visibility:hidden; | 20 style="visibility:hidden; |
| 21 position: absolute; | 21 position: absolute; |
| 22 top: 200px; left: 200px; | 22 top: 200px; left: 200px; |
| 23 width: 200px; height: 200px; | 23 width: 200px; height: 200px; |
| 24 background-color: redl "></div> | 24 background-color: redl "></div> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| OLD | NEW |