blob: 2c8126ccdf47551b838b415696b1d5d0d461e878 (
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
|
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>visibility:hidden on child of compositing layer</title>
<style type="text/css" media="screen">
.box {
height: 100px;
width: 100px;
}
.outer {
position: absolute;
top: 40px;
left: 20px;
height: 100px;
width: 100px;
outline: 2px solid black;
visibility: hidden;
transform: translateZ(0);
}
.inner {
position: relative;
height: 100px;
width: 100px;
background-color: green;
visibility: visible;
}
#indicator {
position: absolute;
top: 40px;
left: 20px;
height: 100px;
width: 100px;
background-color: red;
}
</style>
</head>
<body>
<p>You should see one green square below.</p>
<div id="indicator"></div>
<div class="outer box">
<div class="inner box">
</div>
</div>
</body>
</html>
|