blob: c2e776a79d144756c7b95b60fbcc294213ea2c6e (
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
60
61
62
63
64
65
66
67
68
69
70
71
|
<!DOCTYPE>
<html>
<head>
<title>Partial layout compositing update</title>
<style type="text/css" media="screen">
.container {
position: relative;
width: 400px;
height: 200px;
border: 1px solid black;
overflow: hidden;
}
.panel {
position: absolute;
top: 0px;
left: 200px;
width: 200px;
height: 200px;
z-index: 3;
background-color: #bbb;
-webkit-transition: left 0.1s linear;
}
.box {
width: 100px;
height: 100px;
}
.panel .content {
background-color: green;
transform: translateZ(0);
}
.indicator {
position: absolute;
top: 0;
left: 0;
background-color: red;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner)
testRunner.waitUntilDone();
function startProgram()
{
var panel = document.getElementById("panel");
panel.addEventListener('webkitTransitionEnd', function() {
if (window.testRunner)
window.setTimeout(function() { testRunner.notifyDone(); }, 0);
}, false);
panel.style.left = "0";
}
window.addEventListener('load', startProgram, false)
</script>
</head>
<body>
<p>The green box should always obscure the red box below.</p>
<div class="container">
<div id="panel" class="panel">
<div class="indicator box"></div>
<div class="content box"></div>
</div>
</div>
</body>
</html>
|