[Mac] Remove backing store for layers that are outside the viewport
[WebKit-https.git] / LayoutTests / compositing / composited-negative-zindex-child.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5   <style type="text/css" media="screen">
6     .box {
7       height: 100px;
8       width: 100px;
9       position: absolute;
10       z-index: 0;
11     }
12     
13     .parent {
14       border: 1px solid black;
15     }
16     
17     .child {
18       top: 10px;
19       left: 10px;
20       background-color: silver;
21       z-index: -1;
22     }
23   </style>
24   <script type="text/javascript" charset="utf-8">
25     if (window.testRunner)
26       testRunner.dumpAsText();
27
28     function doTest() {
29       document.getElementById('child').style.webkitTransform = 'translateZ(0)';
30     }
31     window.addEventListener('load', doTest, false);
32   </script>
33 </head>
34 <body>
35   <p>This test should not assert in debug builds.</p>
36   <div class="parent box">
37     <div id="child" class="child box"></div>
38   </div>
39 </body>
40 </html>