Index: LayoutTests/compositing/squashing/squash-simple.html |
diff --git a/LayoutTests/compositing/squashing/squash-simple.html b/LayoutTests/compositing/squashing/squash-simple.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5f498ef79d483dd3a4ecf11c6b518c56c05a5e5 |
--- /dev/null |
+++ b/LayoutTests/compositing/squashing/squash-simple.html |
@@ -0,0 +1,66 @@ |
+<!DOCTYPE html> |
+<head> |
+<style> |
+.composited { |
+-webkit-transform: translatez(0); |
+} |
+ |
+.box { |
+ width: 100px; |
+ height: 100px; |
+} |
+ |
+.behind { |
+ position: absolute; |
+ z-index: 1; |
+ top: 100px; |
+ left: 100px; |
+ background-color: blue; |
+} |
+ |
+.middle { |
+ position: absolute; |
+ z-index: 1; |
+ top: 20px; |
+ left: 20px; |
+ background-color: lime; |
+} |
+ |
+.top { |
+ position: absolute; |
+ z-index: 1; |
+ top: 180px; |
+ left: 180px; |
+ background-color: cyan; |
+} |
+ |
+div:hover { |
+ background-color: green; |
+} |
+ |
+</style> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ if (window.internals) |
+ internals.settings.setLayerSquashingEnabled(true); |
+ |
+ function runTest() |
+ { |
+ if (!window.internals) { |
+ alert('This test requires window.internals') |
+ return; |
+ } |
+ |
+ testRunner.display(); |
+ document.body.textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
+ document.body.style.whiteSpace = 'pre'; |
+ } |
+</script> |
+</head> |
+<body onload="runTest()"> |
+<div class="composited box behind"></div> |
+<div class="box middle"></div> |
+<div class="box top"></div> |
+</body> |