blob: d8b0c9dd5590c811ef5e85b4577fb3df6c6ab4a1 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Overflow Test</title>
<style type="text/css" media="screen">
.container {
display: inline-block;
margin: 20px;
width: 120px;
height: 120px;
padding: 10px;
border: 1px solid black;
overflow: hidden;
}
.intermediate {
width: 100px;
height: 100px;
padding: 10px;
border: 1px solid blue;
}
.box {
width: 100px;
height: 150px;
background-color: gray;
-webkit-transform: translateZ(0);
}
</style>
</head>
<body>
<p>Test overflow clipping of composited elements in various configurations.</p>
<div class="container">
<div class="intermediate">
<div class="box">
</div>
</div>
</div>
<div class="container">
<div class="intermediate" style="position: absolute">
<div class="box">
</div>
</div>
</div>
<div class="container" style="position: relative">
<div class="intermediate" style="position: absolute">
<div class="box">
</div>
</div>
</div>
<br>
<div class="container" style="z-index: 0">
<div class="intermediate">
<div class="box">
</div>
</div>
</div>
<div class="container" style="z-index: 0">
<div class="intermediate" style="position: absolute; z-index: 0;">
<div class="box">
</div>
</div>
</div>
<div class="container" style="position: relative; z-index: 0">
<div class="intermediate" style="position: absolute;">
<div class="box">
</div>
</div>
</div>
</body>
</html>
|