OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 .hidden { | 6 .hidden { |
7 visibility: hidden; | 7 visibility: hidden; |
8 } | 8 } |
9 | 9 |
10 .visible { | 10 .visible { |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 .green { | 38 .green { |
39 background-color: green; | 39 background-color: green; |
40 } | 40 } |
41 </style> | 41 </style> |
42 </head> | 42 </head> |
43 <body> | 43 <body> |
44 <!-- | 44 <!-- |
45 https://bugs.webkit.org/show_bug.cgi?id=108118 | 45 https://bugs.webkit.org/show_bug.cgi?id=108118 |
46 (Note: CompositedLayerMapping was formerly known as RenderLayerBacking) | 46 (Note: CompositedLayerMapping was formerly known as LayerBacking) |
47 | 47 |
48 The boolean check CompositedLayerMapping::hasVisibleNonCompositingDescendant
() | 48 The boolean check CompositedLayerMapping::hasVisibleNonCompositingDescendant
() |
49 was actually not checking for visible content beyond children layers. As a | 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 | 50 result, composited layers sometimes did not see that they actually have |
51 visible content in a descendant RenderLayer. This test recreates that | 51 visible content in a descendant Layer. This test recreates that |
52 scenario by using visibility:hidden stacking contexts to create a deeper | 52 scenario by using visibility:hidden stacking contexts to create a deeper |
53 hierarchy of RenderLayers within on composited layer. | 53 hierarchy of Layers within on composited layer. |
54 | 54 |
55 The green box should be visible, hiding the red box. | 55 The green box should be visible, hiding the red box. |
56 --> | 56 --> |
57 <div> | 57 <div> |
58 | 58 |
59 <div class="topLeft red box"> | 59 <div class="topLeft red box"> |
60 </div> | 60 </div> |
61 | 61 |
62 <div class="composited topLeft hidden box"> | 62 <div class="composited topLeft hidden box"> |
63 <div class="hidden stackingContext"> | 63 <div class="hidden stackingContext"> |
64 <div class="hidden stackingContext"> | 64 <div class="hidden stackingContext"> |
65 <div class="visible green box"> | 65 <div class="visible green box"> |
66 </div> | 66 </div> |
67 </div> | 67 </div> |
68 </div> | 68 </div> |
69 </div> | 69 </div> |
70 | 70 |
71 </div> | 71 </div> |
72 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |