OLD | NEW |
1 <!-- Based on fast/repaint/repaint-on-style-change.html --> | 1 <!-- Based on fast/repaint/repaint-on-style-change.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <title>Test for repaint on style change</title> | 5 <title>Test for repaint on style change</title> |
6 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | 6 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
7 <script> | 7 <script> |
8 window.expectedPaintInvalidationObjects = [ | |
9 "LayoutBlockFlow (positioned) DIV id='box'", | |
10 ]; | |
11 function paintInvalidationTest() | 8 function paintInvalidationTest() |
12 { | 9 { |
13 if (!window.testRunner) | 10 if (!window.testRunner) |
14 return; | 11 return; |
15 document.getElementById('box').style['background-color'] = 'green'; | 12 document.getElementById('box').style['background-color'] = 'green'; |
16 } | 13 } |
17 </script> | 14 </script> |
18 <style> | 15 <style> |
19 div { | 16 div { |
20 background-color: magenta; | 17 background-color: magenta; |
21 height: 100px; | 18 height: 100px; |
22 width: 100px; | 19 width: 100px; |
23 | 20 |
24 position: absolute; | 21 position: absolute; |
25 top: 260px; | 22 top: 260px; |
26 left: 260px; | 23 left: 260px; |
27 } | 24 } |
28 </style> | 25 </style> |
29 </head> | 26 </head> |
30 <body onload="runPaintInvalidationTest()"> | 27 <body onload="runPaintInvalidationTest()"> |
31 <div id='box'> </div> | 28 <div id='box'> </div> |
32 </body> | 29 </body> |
33 </html> | 30 </html> |
34 | 31 |
OLD | NEW |