Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / squashing / squash-simple.html
1 <!DOCTYPE html>
2 <head>
3 <style>
4 .composited {
5 transform: translatez(0);
6 }
7
8 .box {
9   width: 100px;
10   height: 100px;
11 }
12
13 .behind {
14   position: absolute;
15   z-index: 1;
16   top: 100px;
17   left: 100px;
18   background-color: blue;
19 }
20
21 .middle {
22   position: absolute;
23   z-index: 1;
24   top: 20px;
25   left: 20px;
26   background-color: lime;
27 }
28
29 .top {
30   position: absolute;
31   z-index: 1;
32   top: 180px;
33   left: 180px;
34   background-color: cyan;
35 }
36
37 div:hover {
38   background-color: green;
39 }
40
41 </style>
42 <script>
43     if (window.testRunner)
44         testRunner.dumpAsText();
45
46     if (window.internals)
47         internals.settings.setLayerSquashingEnabled(true);
48
49     function runTest()
50     {
51         if (!window.internals) {
52             alert('This test requires window.internals')
53             return;
54         }
55
56         document.body.textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
57         document.body.style.whiteSpace = 'pre';
58     }
59 </script>
60 </head>
61 <body onload="runTest()">
62 <div class="composited box behind"></div>
63 <div class="box middle"></div>
64 <div class="box top"></div>
65 </body>