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
content / test / data / gpu / pixel_perspective_paint.html [blame]
<!DOCTYPE HTML>
<html>
<head>
<title>Perspective test for divs.</title>
<style type="text/css">
.nomargin {
margin: 0px auto;
}
</style>
<script>
var g_swapsBeforeAck = 50;
function main()
{
waitForFinish();
}
function waitForFinish()
{
if (g_swapsBeforeAck == 0) {
domAutomationController.send("SUCCESS");
} else {
g_swapsBeforeAck--;
window.requestAnimationFrame(waitForFinish);
}
}
</script>
</head>
<body onload="main()">
<div style="
perspective: 1px;
border: 1px solid seagreen;
">
<div style="
border-radius: .5rem;
overflow: hidden;
border: 1px solid gold;
">
<div style="
max-height: 12rem;
overflow-y: auto;
border-radius: .25rem;
border: 1px solid rebeccapurple;
">
<p>item</p>
<p>item</p>
<p>item</p>
<p>item</p>
<p>item</p>
<p>item</p>
</div>
</div>
</div>
</body>
</html>