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

Unified Diff: third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite.html

Issue 1413363003: Always composite position: fixed elements with composited descendants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite.html
diff --git a/third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite.html b/third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e6a04fe6b89d6d6f99740500114b51e61f840da
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite.html
@@ -0,0 +1,15 @@
+<!doctype HTML>
+<!-- Having a composited child should always be a position:fixed compositing trigger -->
+<div style="position: fixed; width: 100px; height: 100px; background: lightgray">
+ <div style="will-change: transform; margin: 50px; width: 50px; height: 50px; background: lightblue">
+ </div>
+</div>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+if (window.internals) {
+ var layerTree = document.createElement('pre');
+ layerTree.innerHTML = internals.layerTreeAsText(document);
Ian Vollick 2015/10/23 00:05:19 suggestion: perhaps you could check the JSON for t
chrishtr 2015/10/23 16:43:58 Done.
+ document.body.appendChild(layerTree);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698