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

Unified Diff: LayoutTests/compositing/squashing/no-squashing-for-filters.html

Issue 547493002: Don't squash layers that have filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests. Created 6 years, 3 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/no-squashing-for-filters.html
diff --git a/LayoutTests/compositing/squashing/no-squashing-for-filters.html b/LayoutTests/compositing/squashing/no-squashing-for-filters.html
new file mode 100644
index 0000000000000000000000000000000000000000..d775fa5790d75b41d46a34ead0a73e054b1a3fe5
--- /dev/null
+++ b/LayoutTests/compositing/squashing/no-squashing-for-filters.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+.trysquashed {
+ width: 50px; height: 50px; background: lightgray
+}
+</style>
+<div style="width: 100px; height: 100px; transform: translateZ(0); background: lightblue"></div>
+<div class="trysquashed" style="position: absolute; top: 0px; left: 0px; -webkit-filter: drop-shadow(1px 1px 2px #000)"></div>
+<div class="trysquashed" style="position: absolute; top: 50px; left: 50px;"></div>
+
+<pre id="layers"></pre>
+<script>
+// Tests that layers with filters are not squashed.
+if (window.testRunner)
+ window.testRunner.dumpAsText();
+var layersResult = document.getElementById('layers');
+if (window.internals)
+ layersResult.innerText = window.internals.layerTreeAsText(document);
+</script>

Powered by Google App Engine
This is Rietveld 408576698