summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/nested-direct-image-compositing.html
blob: 458bfbacb56156a9b56003e13f5f89070ec2ac1e (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<title>Check to disappear the afterimage after changing the style of an img tag.</title>
<style type="text/css">
div.cell
{
    transform: translate3d(0, 0, 0);
}

img
{
    position: absolute;
    transform: translate3d(0, 0, 0);
}

div.magnify img
{
    transform: scale(2.0);
}
</style>
</head>
<body>


<div class="cell magnify" id="cell">
    <img src="resources/simple_image.png">
</div>


<script type="text/javascript">
function updateStack()
{
    var cell = document.getElementById("cell");
    cell.className = "cell";

    setTimeout(function() {
        if (window.testRunner) {
            window.testRunner.notifyDone();
        }
    }, 10);
}

window.onload = function ()
{
    if (window.testRunner) {
        window.testRunner.dumpAsTextWithPixelResults();
        window.testRunner.waitUntilDone();
    }

    setTimeout(function() {
        updateStack();
    }, 200);
}
</script>

</body>
</html>