OLD | NEW |
| 1 <!-- Based on fast/repaint/dont-invalidate-root-layer-when-composited-layer-beco
mes-visible.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <html> | 3 <html> |
3 <head> | 4 <head> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
5 <script type="text/javascript"> | 6 <script type="text/javascript"> |
6 window.onload = function() { | 7 window.onload = function() { |
7 runRepaintTest(); | 8 runPaintInvalidationTest(); |
8 }; | 9 }; |
9 | 10 |
10 function repaintTest() { | 11 window.expectedPaintInvalidationObjects = [ |
| 12 "LayoutBlockFlow (positioned) DIV id='target'", |
| 13 ]; |
| 14 function paintInvalidationTest() { |
11 document.getElementById('target').style.visibility = 'visible'; | 15 document.getElementById('target').style.visibility = 'visible'; |
12 } | 16 } |
13 </script> | 17 </script> |
14 </head> | 18 </head> |
15 <body> | 19 <body> |
16 <div id="target" | 20 <div id="target" |
17 style="will-change: transform; | 21 style="will-change: transform; |
18 visibility:hidden; | 22 visibility:hidden; |
19 position: absolute; | 23 position: absolute; |
20 top: 200px; left: 200px; | 24 top: 200px; left: 200px; |
21 width: 200px; height: 200px; | 25 width: 200px; height: 200px; |
22 background-color: redl "></div> | 26 background-color: redl "></div> |
23 </body> | 27 </body> |
24 </html> | 28 </html> |
OLD | NEW |