forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremove-overflow-crash.html
48 lines (42 loc) · 985 Bytes
/
remove-overflow-crash.html
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
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.overflow {
overflow: scroll;
width: 200px;
height: 200px;
}
#overflow1 {
-webkit-overflow-scrolling: touch;
}
#overflow2 {
-webkit-overflow-scrolling: auto;
}
.contents {
height: 1000px;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function doTest() {
document.getElementById('overflow1').style.webkitOverflowScrolling = 'auto';
document.getElementById('overflow2').style.webkitOverflowScrolling = 'touch';
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="overflow1" class="overflow">
<div class="contents">
This test should not crash.
</div>
</div>
<div id="overflow2" class="overflow">
<div class="contents">
This test should not crash.
</div>
</div>
</body>
</html>