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