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

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..82071a27d709c239df83783c9cd323a314ad0587
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite.html
@@ -0,0 +1,16 @@
+<!doctype HTML>
+Any errors will show below this line.
+<!-- 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 src="../resources/testharness.js"></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+if (window.internals) {
+ var layers = JSON.parse(internals.layerTreeAsText(document));
+ assert_true(layers.children.length == 1 && layers.children[0].children.length == 1);
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/always-composite-fixed-position-when-descendants-composite-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698