Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / squashing / squashing-sparsity-heuristic.html
blobc2a1db23e6a5d643ffff537e1379ef923e7da994
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 div {
6 position: absolute;
7 z-index: 1;
8 width: 10px;
9 height: 10px;
12 .composited {
13 transform: translatez(0);
14 top: 60px;
15 left: 60px;
16 width: 400px;
17 height: 400px;
18 background-color: gray;
21 .overlap1 {
22 top: 140px;
23 left: 140px;
24 background-color: blue;
27 .overlap2 {
28 top: 220px;
29 left: 220px;
30 background-color: lime;
33 .overlap3 {
34 top: 300px;
35 left: 220px;
36 background-color: green;
39 .overlap4 {
40 top: 300px;
41 left: 235px;
42 background-color: yellow;
44 </style>
45 <script>
46 if (window.testRunner)
47 testRunner.dumpAsText();
49 function dump() {
50 if (!window.internals)
51 return;
52 var layers = document.createElement('pre');
53 layers.innerHTML = window.internals.layerTreeAsText(document);
54 document.body.appendChild(layers);
57 window.onload = dump;
58 </script>
59 </head>
61 <body>
62 <!--
63 If this test is working correctly, then the first two layers should not
64 squash together (as they would create a layer that's too sparse), but the
65 third and fourth layers should squash together.
66 -->
67 <div class="composited"></div>
68 <div id="A" class="overlap1"></div>
69 <div id="B" class="overlap2"></div>
70 <div id="C" class="overlap3"></div>
71 <div id="D" class="overlap4"></div>
72 </body>
73 </html>