Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: LayoutTests/compositing/squashing/squash-onto-transform-backing.html

Issue 137143009: Add a number of tests for layer squashing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: moar expectations Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/squashing/squash-onto-transform-backing.html
diff --git a/LayoutTests/compositing/squashing/squash-onto-transform-backing.html b/LayoutTests/compositing/squashing/squash-onto-transform-backing.html
new file mode 100644
index 0000000000000000000000000000000000000000..09a30310ca1e3361f4b8763f87c2f193901bd14b
--- /dev/null
+++ b/LayoutTests/compositing/squashing/squash-onto-transform-backing.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<head>
+<style>
+
+.compositedAndRotated {
+-webkit-transform: translatez(0) rotate(45deg);
+}
+
+.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="compositedAndRotated box behind"></div>
+<div class="box middle"></div>
+<div class="box top"></div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698