OLD | NEW |
1 <!-- Based on fast/repaint/button-spurious-layout-hint.html --> | 1 <!-- Based on fast/repaint/button-spurious-layout-hint.html --> |
2 <head> | 2 <head> |
3 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | 3 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 "LayoutButton BUTTON id='target'", | |
7 ]; | |
8 function paintInvalidationTest() | 5 function paintInvalidationTest() |
9 { | 6 { |
10 document.getElementById("target").style.backgroundColor = "lightpink
"; | 7 document.getElementById("target").style.backgroundColor = "lightpink
"; |
11 } | 8 } |
12 </script> | 9 </script> |
13 </head> | 10 </head> |
14 <body onload="runPaintInvalidationTest()"> | 11 <body onload="runPaintInvalidationTest()"> |
15 <button id="target" style="height: 100px; width: 100px; background-color: li
ghtblue; border: none;"> </button> | 12 <button id="target" style="height: 100px; width: 100px; background-color: li
ghtblue; border: none;"> </button> |
16 </body> | 13 </body> |
OLD | NEW |