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

Unified Diff: LayoutTests/compositing/squashing/overflow-scroll-grandchildren.html

Issue 219223008: Revert of Revert of Put the squashing layer underneath the ancestor clipping layer if present. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/overflow-scroll-grandchildren-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/squashing/overflow-scroll-grandchildren.html
diff --git a/LayoutTests/compositing/squashing/overflow-scroll-grandchildren.html b/LayoutTests/compositing/squashing/overflow-scroll-grandchildren.html
new file mode 100644
index 0000000000000000000000000000000000000000..5c44d48792ff7de473972eb0ab80e4a92229f34a
--- /dev/null
+++ b/LayoutTests/compositing/squashing/overflow-scroll-grandchildren.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<style>
+ #container {
+ width: 300px;
+ height: 300px;
+ border: 1px solid black;
+ overflow: scroll;
+ }
+
+ #overlapper {
+ position: fixed;
+ background-color: red;
+ width: 50px;
+ height: 200px;
+ left: 20px;
+ top: 20px;
+ -webkit-transform: translateZ(0);
+ }
+
+ #subcontainer {
+ height: 500px
+ }
+
+ .child {
+ position: relative;
+ top: 5px;
+ left: 5px;
+ background-color: green;
+ height: 35px;
+ width: 35px;
+ margin: 50px;
+ }
+
+ .grandchild {
+ position: relative;
+ top: 5px;
+ left: 5px;
+ background-color: blue;
+ height: 10px;
+ width: 10px;
+ }
+</style>
+
+<div id="overlapper"></div>
+<div id="container">
+ <div id="subcontainer">
+ <div class="child">
+ <div class="grandchild"></div>
+ </div>
+ <div class="child">
+ <div class="grandchild"></div>
+ </div>
+ </div>
+</div>
+<script>
+if (window.internals)
+ window.internals.settings.setLayerSquashingEnabled(true);
+
+// Scroll so that one of the grandchildren boxes is half clipped by the overflow:scroll div.
+var container = document.getElementById("container");
+container.scrollTop = 65;
+</script>
« no previous file with comments | « no previous file | LayoutTests/compositing/squashing/overflow-scroll-grandchildren-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698