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 = [ | 5 if (window.testRunner) |
6 ]; | 6 testRunner.dumpAsText(); |
7 function paintInvalidationTest() { | 7 function paintInvalidationTest() { |
8 document.getElementsByTagName('button')[0].style.maxWidth = '1000px'; | 8 document.getElementsByTagName('button')[0].style.maxWidth = '1000px'; |
9 } | 9 } |
10 onload = runPaintInvalidationTest; | 10 onload = runPaintInvalidationTest; |
11 </script> | 11 </script> |
12 <style> | 12 <style> |
13 button { | 13 button { |
14 position: absolute; | 14 position: absolute; |
15 width: 300px; | 15 width: 300px; |
16 height: 100px; | 16 height: 100px; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <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 |