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

Unified Diff: LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips.html

Issue 543123003: Don't squash fixed-position elements into another fixed-position element that has a clip. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed. 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
« no previous file with comments | « no previous file | LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips.html
diff --git a/LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips.html b/LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips.html
new file mode 100644
index 0000000000000000000000000000000000000000..bfe91c132eff27bf5045974339e11aaddccdc737
--- /dev/null
+++ b/LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<style>
+.notsquashedelement {
+ top: 0;
+ right: 0;
+ left: 0;
+ z-index: 1000;
+ height: 60px;
+ background-color: green;
+ position: fixed;
+}
+
+.fixedpos {
+ position: fixed;
+ top: 50px;
+ right: 0;
+ left: 0;
+ bottom: 0;
+ overflow-y: auto;
+ background-color: lightblue;
+}
+
+.compositedlayer {
+ position: fixed;
+ top: 40px;
+ left: 50%;
+ width: 24px;
+ height: 100px;
+ background: lightgray;
+ transform: translateZ(0);
+}
+</style>
+<div class="notsquashedelement"></div>
+<div class="fixedpos">
+ <div class="compositedlayer"></div>
+</div>
+<pre id="output"></pre>
+<script>
+// Tests that not squashing into an element with a different clip works correctly with fixed-position layers.
+if (window.testRunner)
+ window.testRunner.dumpAsText();
+
+if (window.internals)
+ output.textContent = window.internals.layerTreeAsText(document);
+</script>
« no previous file with comments | « no previous file | LayoutTests/compositing/squashing/no-squashing-into-fixed-position-that-clips-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698