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