summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/layer-visibility.html
blob: b72198184da5655374d1d94bd236f17f2b290bbd (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
25
26
<html>
<head>
<script src="resources/text-based-repaint.js"></script>
<script>
    function test()
    {
        document.body.offsetTop;
        var target = document.getElementById("target");
        target.style.visibility = "visible";
        document.body.offsetTop;
        
        runRepaintTest();
    }

    function repaintTest()
    {
        var target = document.getElementById("target");
        target.style.left = "0";
        target.style.backgroundColor = "green";
    }
</script>
</head>
<body onload="test()">
    <div id="target" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>
</body>
</html>