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