blob: 0c8cbcaa341ea4b74280f4cb6930640d32a308b6 (
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
|
<!DOCTYPE html>
<html>
<head>
<title>Layers inside overflow-scroll</title>
<style type="text/css" media="screen">
#container {
width: 300px;
margin: 10px;
border: 1px solid black;
}
#details {
width: 300px;
height: 150px;
margin: 10px;
overflow: auto;
border: 1px solid black;
}
#details > div {
width: 100%;
height: 500px;
font-size: 24pt;
line-height: 150%;
}
.compositing {
height: 100px;
width: 100px;
background-color: red;
transform: translateZ(0);
}
</style>
<script src="resources/media-testing.js"></script>
<script src="../media/media-file.js"></script>
<script type="text/javascript" charset="utf-8">
function testDone()
{
document.getElementById('details').scrollTop = 100;
if (window.testRunner)
testRunner.notifyDone();
}
function doTest()
{
var video = document.getElementsByTagName('video')[0];
setupVideo(video, 'resources/video', testDone);
}
</script>
</head>
<body onload="doTest()">
<p>The red box in the overflow:scroll div should be scrolled out of view.</p>
<div id="container">
<video width="300" height="200"></video>
</div>
<div id="details">
<div>
<div class="compositing"></div>
</div>
</div>
</body>
</html>
|