summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/transform-translate.html
blob: 40a0d7e87cfa56eb5beca245f5db90b409d35778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<head>
<title>Repaint test for bug 15719</title>
<script src="resources/text-based-repaint.js" type="text/javascript"></script>
</head>
<body onload="runRepaintTest()">
<h1>Repaint test for bug 15719</h1>
<div id="target" style="transform: translate(0, 0); width: 100px; height: 100px; background-color: yellow; border: solid;"></div>
<script>
    var offset = 0;
    function repaintTest()
    {
        offset += 20;
        document.getElementById("target").style.webkitTransform = "translate(" + offset + "px, 0)";
    }
</script>