OLD | NEW |
| 1 <!-- Based on fast/repaint/background-generated.html --> |
1 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
2 <head> | 3 <head> |
3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 4 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
4 <script type="text/javascript"> | 5 <script type="text/javascript"> |
5 function repaintTest() | 6 window.expectedPaintInvalidationObjects = [ |
| 7 "LayoutBlockFlow DIV", |
| 8 "LayoutBlockFlow DIV id='target'", |
| 9 ]; |
| 10 function paintInvalidationTest() |
6 { | 11 { |
7 document.getElementById("target").style.height = "200px"; | 12 document.getElementById("target").style.height = "200px"; |
8 } | 13 } |
9 </script> | 14 </script> |
10 </head> | 15 </head> |
11 <body onload="runRepaintTest();"> | 16 <body onload="runPaintInvalidationTest();"> |
12 <div style="width: 100px; | 17 <div style="width: 100px; |
13 padding-top: 100px; | 18 padding-top: 100px; |
14 background-image: -webkit-gradient(linear, left top, left bottom
, from(red), to(blue)); | 19 background-image: -webkit-gradient(linear, left top, left bottom
, from(red), to(blue)); |
15 "> | 20 "> |
16 <div id="target" style="height: 100px;"></div> | 21 <div id="target" style="height: 100px;"></div> |
17 </div> | 22 </div> |
18 </body> | 23 </body> |
OLD | NEW |