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