blob: 2cd92590c95899982f22103bff4d14cac835f6ba (
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
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.hidden {
visibility: hidden;
}
.visible {
visibility: visible;
}
.box {
width: 300px;
height: 300px;
}
.composited {
transform: translatez(0);
}
.topLeft {
position: absolute;
top: 0px;
left: 0px;
}
.stackingContext {
position: absolute;
z-index: 5;
}
.red {
background-color: red;
}
.green {
background-color: green;
}
</style>
</head>
<body>
<!--
https://bugs.webkit.org/show_bug.cgi?id=108118
(Note: CompositedLayerMapping was formerly known as LayerBacking)
The boolean check CompositedLayerMapping::hasVisibleNonCompositingDescendant()
was actually not checking for visible content beyond children layers. As a
result, composited layers sometimes did not see that they actually have
visible content in a descendant Layer. This test recreates that
scenario by using visibility:hidden stacking contexts to create a deeper
hierarchy of Layers within on composited layer.
The green box should be visible, hiding the red box.
-->
<div>
<div class="topLeft red box">
</div>
<div class="composited topLeft hidden box">
<div class="hidden stackingContext">
<div class="hidden stackingContext">
<div class="visible green box">
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|