OLD | NEW |
1 <!-- Based on fast/repaint/relative-positioned-movement-repaint.html --> | 1 <!-- Based on fast/repaint/relative-positioned-movement-repaint.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <style> | 3 <style> |
4 #block { | 4 #block { |
5 display: block; | 5 display: block; |
6 margin: 10px; | 6 margin: 10px; |
7 width: 400px; | 7 width: 400px; |
8 height: 60px; | 8 height: 60px; |
9 border: 1px solid black; | 9 border: 1px solid black; |
10 -webkit-backface-visibility: hidden; | 10 -webkit-backface-visibility: hidden; |
11 position: relative; | 11 position: relative; |
12 left: 10px; | 12 left: 10px; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <script src="resources/paint-invalidation-test.js"></script> | 15 <script src="resources/paint-invalidation-test.js"></script> |
16 <script> | 16 <script> |
17 window.expectedPaintInvalidationObjects = [ | |
18 ]; | |
19 function paintInvalidationTest() | 17 function paintInvalidationTest() |
20 { | 18 { |
21 document.body.offsetTop; | 19 document.body.offsetTop; |
22 var div = document.getElementById("block"); | 20 var div = document.getElementById("block"); |
23 div.style.left = '50px'; | 21 div.style.left = '50px'; |
24 } | 22 } |
25 window.onload = runPaintInvalidationTest; | 23 window.onload = runPaintInvalidationTest; |
26 </script> | 24 </script> |
27 <div id="block">When this layer moves it shouldn't generate a repaint rect.</div
> | 25 <div id="block">When this layer moves it shouldn't generate a repaint rect.</div
> |
OLD | NEW |