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