Chromium Code Reviews| Index: LayoutTests/compositing/layer-creation/compositing-reason-removed.html |
| diff --git a/LayoutTests/compositing/layer-creation/compositing-reason-removed.html b/LayoutTests/compositing/layer-creation/compositing-reason-removed.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..16abc001f21c9a55e26df4541e1f30165b4eacfe |
| --- /dev/null |
| +++ b/LayoutTests/compositing/layer-creation/compositing-reason-removed.html |
| @@ -0,0 +1,39 @@ |
| +<style> |
|
Ian Vollick
2014/06/12 20:17:09
DOCTYPE
ajuma
2014/06/12 21:07:59
Done.
|
| + #square { |
| + background-color: blue; |
| + width: 30px; |
| + height: 30px; |
| + position: relative; |
| + -webkit-backface-visibility: hidden; |
| + } |
| + |
| + #testResults { |
| + display: none; |
| + } |
| +</style> |
| + |
| +<script> |
| + if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + } |
| + |
| + onload = function() { |
| + if (!window.internals) |
| + return; |
| + |
| + window.internals.startTrackingRepaints(document); |
| + |
| + // Remove the div's only compositing reason. This should trigger a repaint. |
| + document.getElementById("square").style.webkitBackfaceVisibility = "visible"; |
| + document.getElementById("layertree").textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| + window.internals.stopTrackingRepaints(document); |
| + |
| + document.getElementById("testResults").style.display = "block"; |
| + } |
| +</script> |
| + |
| +<div id="square"></div> |
| + |
| +<div id="testResults"> |
| + <pre id="layertree"></pre> |
| +</div> |