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