blob: 458bfbacb56156a9b56003e13f5f89070ec2ac1e [file] [log] [blame]
[email protected]d1b79d42012-11-08 22:37:571<!DOCTYPE html>
2<html>
3<head>
4<title>Check to disappear the afterimage after changing the style of an img tag.</title>
5<style type="text/css">
6div.cell
7{
[email protected]8448b5ae2014-10-18 08:49:388 transform: translate3d(0, 0, 0);
[email protected]d1b79d42012-11-08 22:37:579}
10
11img
12{
13 position: absolute;
[email protected]8448b5ae2014-10-18 08:49:3814 transform: translate3d(0, 0, 0);
[email protected]d1b79d42012-11-08 22:37:5715}
16
17div.magnify img
18{
[email protected]8448b5ae2014-10-18 08:49:3819 transform: scale(2.0);
[email protected]d1b79d42012-11-08 22:37:5720}
21</style>
22</head>
23<body>
24
25
26<div class="cell magnify" id="cell">
27 <img src="resources/simple_image.png">
28</div>
29
30
31<script type="text/javascript">
32function updateStack()
33{
34 var cell = document.getElementById("cell");
35 cell.className = "cell";
36
37 setTimeout(function() {
38 if (window.testRunner) {
39 window.testRunner.notifyDone();
40 }
41 }, 10);
42}
43
44window.onload = function ()
45{
46 if (window.testRunner) {
[email protected]8cff6f512013-09-25 16:59:3847 window.testRunner.dumpAsTextWithPixelResults();
[email protected]d1b79d42012-11-08 22:37:5748 window.testRunner.waitUntilDone();
49 }
50
51 setTimeout(function() {
52 updateStack();
53 }, 200);
54}
55</script>
56
57</body>
58</html>
59