| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 .set { | 3 .set { |
| 4 position: absolute; | 4 position: absolute; |
| 5 top: 8px; | 5 top: 8px; |
| 6 } | 6 } |
| 7 .box { | 7 .box { |
| 8 height: 100px; | 8 height: 100px; |
| 9 width: 100px; | 9 width: 100px; |
| 10 background-color: lightblue; | 10 background-color: lightblue; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 <!-- This div will be the "owner" of the squashing layer --> | 28 <!-- This div will be the "owner" of the squashing layer --> |
| 29 <div id="target" class="composited box"></div> | 29 <div id="target" class="composited box"></div> |
| 30 <!-- These divs will be squashed into a layer containing them and the owner --> | 30 <!-- These divs will be squashed into a layer containing them and the owner --> |
| 31 <div class="squashed" style="top: 4px"></div> | 31 <div class="squashed" style="top: 4px"></div> |
| 32 <div class="squashed" style="top: 54px"></div> | 32 <div class="squashed" style="top: 54px"></div> |
| 33 <pre id="layers">Layer tree goes here in DRT</pre> | 33 <pre id="layers">Layer tree goes here in DRT</pre> |
| 34 <script> | 34 <script> |
| 35 if (window.testRunner) | 35 if (window.testRunner) |
| 36 testRunner.dumpAsText(); | 36 testRunner.dumpAsText(); |
| 37 | 37 |
| 38 if (window.testRunner) { | |
| 39 internals.settings.setLayerSquashingEnabled(true); | |
| 40 } | |
| 41 document.getElementById("target").classList.add("opaque"); | 38 document.getElementById("target").classList.add("opaque"); |
| 42 | 39 |
| 43 var layersResult = document.getElementById('layers'); | 40 var layersResult = document.getElementById('layers'); |
| 44 if (window.testRunner) | 41 if (window.testRunner) |
| 45 layersResult.innerText = window.internals.layerTreeAsText(document); | 42 layersResult.innerText = window.internals.layerTreeAsText(document); |
| 46 </script> | 43 </script> |
| OLD | NEW |