OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/absolute-layer-specified-left-or-right-auto-width-mov
ed-vertically.html --> | |
2 <!DOCTYPE html> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() | |
6 { | |
7 document.getElementById('left').style.top = '400px'; | |
8 document.getElementById('right').style.top = '400px'; | |
9 } | |
10 | |
11 window.onload = runPaintInvalidationTest; | |
12 </script> | |
13 | |
14 <style> | |
15 #left, #right { | |
16 position: absolute; | |
17 top: 200px; | |
18 -webkit-backface-visibility: hidden; | |
19 } | |
20 #left { | |
21 left: 0px; | |
22 } | |
23 #right { | |
24 right: 0px; | |
25 } | |
26 </style> | |
27 | |
28 There should be no repaint when the divs are moved vertically. | |
29 <div id="left">Left</div> | |
30 <div id="right">Right</div> | |
31 <pre id="result"></pre> | |
OLD | NEW |