5 <style type=
"text/css" media=
"screen">
20 transform: translatez(
0);
35 background-color: red;
39 background-color: green;
45 https://bugs.webkit.org/show_bug.cgi?id=108118
46 (Note: CompositedLayerMapping was formerly known as LayerBacking)
48 The boolean check CompositedLayerMapping::hasVisibleNonCompositingDescendant()
49 was actually not checking for visible content beyond children layers. As a
50 result, composited layers sometimes did not see that they actually have
51 visible content in a descendant Layer. This test recreates that
52 scenario by using visibility:hidden stacking contexts to create a deeper
53 hierarchy of Layers within on composited layer.
55 The green box should be visible, hiding the red box.
59 <div class=
"topLeft red box">
62 <div class=
"composited topLeft hidden box">
63 <div class=
"hidden stackingContext">
64 <div class=
"hidden stackingContext">
65 <div class=
"visible green box">