| OLD | NEW |
| 1 <!-- Based on fast/repaint/button-inner-no-repaint.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
| 3 <script> | 4 <script> |
| 4 function repaintTest() { | 5 window.expectedPaintInvalidationObjects = [ |
| 6 ]; |
| 7 function paintInvalidationTest() { |
| 5 document.getElementsByTagName('button')[0].style.maxWidth = '1000px'; | 8 document.getElementsByTagName('button')[0].style.maxWidth = '1000px'; |
| 6 } | 9 } |
| 7 onload = runRepaintTest; | 10 onload = runPaintInvalidationTest; |
| 8 </script> | 11 </script> |
| 9 <style> | 12 <style> |
| 10 button { | 13 button { |
| 11 position: absolute; | 14 position: absolute; |
| 12 width: 300px; | 15 width: 300px; |
| 13 height: 100px; | 16 height: 100px; |
| 14 } | 17 } |
| 15 </style> | 18 </style> |
| 16 <button>Should not repaint on style change that doesn't change visual.</button> | 19 <button>Should not repaint on style change that doesn't change visual.</button> |
| OLD | NEW |