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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html

Issue 2747333006: Modify paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint-expect… (Closed)
Patch Set: Rebase Created 3 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
Index: third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..ddb860bc586c13bb41d89e2ae4f4bf7ae3574a01
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML>
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+if (window.internals)
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
+
+function repaintTest() {
+ container.scrollTop = 100;
+}
+
+onload = runRepaintAndPixelTest;
+</script>
+<style>
+::-webkit-scrollbar {
+ width: 0;
+ height: 0;
+}
+
+#container {
+ width: 100px;
+ height: 300px;
+ border: 1px black solid;
+ overflow: scroll;
+ position: relative;
+ backface-visibility: hidden;
+}
+
+#neg-z {
+ position: relative;
+ z-index: -1;
+}
+
+.scrolled {
+ width: 50px;
+ height: 50px;
+ margin: 10px;
+ position: relative;
+ background-color: green;
+}
+</style>
+<div id="container">
+ <div id="neg-z">
+ <div class="scrolled">1</div>
+ <div class="scrolled">2</div>
+ <div class="scrolled">3</div>
+ <div class="scrolled">4</div>
+ <div class="scrolled">5</div>
+ <div class="scrolled">6</div>
+ <div class="scrolled">7</div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698