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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child.html

Issue 2343963002: Don't apply composited scrolling offsets if composited scrolling isn't happening. (Closed)
Patch Set: none Created 4 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 | third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child.html b/third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child.html
new file mode 100644
index 0000000000000000000000000000000000000000..c397bf60ab3160625946d6412159a502dad23d9c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child.html
@@ -0,0 +1,35 @@
+<!doctype HTML>
+<style>
+body {
+ margin: 0;
+}
+::-webkit-scrollbar {
+ display: none;
+}
+#scroller {
+ background: gray;
+ height: 300px;
+ overflow: scroll;
+ position: relative;
+ z-index: 0;
+}
+
+#content {
+ overflow: hidden;
+ position: relative;
+ background-color: white;
+ width: 1000px;
+ height: 1000px;
+ top: 50px;
+}
+</style>
+<!-- The test succeeds if white is visible across all of the visible scrolling area, and no gray -->
+<div id="scroller">
+ <div id="content"></div>
+ <div style="position: relative; z-index: -1; will-change: transform"></div>
+</div>
+<script>
+onload = function() {
+ scroller.scrollTop = 50;
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/overflow/scroll-neg-z-index-and-composited-child-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698