Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / squashing / squash-transform.html
blob206471880e04b949f0f43d9c1cd513b1a71903c3
1 <!DOCTYPE html>
2 <head>
3 <style>
4 .composited {
5 transform: translatez(0);
8 .box {
9 width: 100px;
10 height: 100px;
13 .behind {
14 position: absolute;
15 z-index: 1;
16 top: 100px;
17 left: 100px;
18 background-color: blue;
21 .middle {
22 position: absolute;
23 z-index: 1;
24 top: 20px;
25 left: 20px;
26 background-color: lime;
27 transform: rotate(45deg);
30 .top {
31 position: absolute;
32 z-index: 1;
33 top: 180px;
34 left: 180px;
35 background-color: cyan;
38 div:hover {
39 background-color: green;
42 </style>
43 <script>
44 if (window.testRunner)
45 testRunner.dumpAsText();
47 function runTest()
49 if (!window.internals) {
50 alert('This test requires window.internals')
51 return;
54 document.body.textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
55 document.body.style.whiteSpace = 'pre';
57 </script>
58 </head>
59 <body onload="runTest()">
60 <div class="composited box behind"></div>
61 <div class="box middle"></div>
62 <div class="box top"></div>
63 </body>