blob: 8a887a2f0c2f4c96a7ceb1da6841e36af665653e (
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
|
<html>
<head>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<style>
body {
height: 5000px;
background-color: red;
overflow: hidden;
}
#trigger {
transform:translateZ(0);
}
#overlap {
width: 1000px;
height: 1000px;
background-color: green;
position: fixed;
left: 0px;
top: 0px;
}
</style>
</head>
<script>
function doTest() {
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
window.scrollTo(0, 2000);
runAfterLayoutAndPaint(function() {
window.scrollTo(0, 1800);
if (window.testRunner)
testRunner.notifyDone();
});
}
window.addEventListener("load", doTest, false);
</script>
<body>
<div id="trigger"></div>
<div id="overlap"></div>
</body>
</html>
|