blob: 8b4bc4e60ee898b194373de1627478f483bac46a (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
background: silver;
zoom: 1.25;
}
iframe {
position: absolute;
top: 50px;
width: 200px;
height: 200px;
overflow: auto;
}
</style>
<script src="resources/text-based-repaint.js"></script>
</head>
<body onload="runRepaintTest()">
<iframe src="javascript:void(0);"></iframe>
<script>
var frame = window.frames[0];
var doc = frame.document;
doc.body.style.backgroundColor = 'white';
doc.body.style.width = '2000px';
doc.body.style.height = '2000px';
doc.body.appendChild(doc.createTextNode('scroll me'));
frame.scrollBy(100, 100);
</script>
<script>
window.testIsAsync = true;
function repaintTest()
{
frame.onscroll = function() {
finishRepaintTest();
};
frame.scrollBy(-90, -90);
}
</script>
</body>
</html>
|