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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-composited-non-stacking-child.html

Issue 2107903002: Repaint non-stacking-context composited children when they scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test. Created 4 years, 6 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/fast/repaint/overflow-scroll-composited-non-stacking-child.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-composited-non-stacking-child.html b/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-composited-non-stacking-child.html
new file mode 100644
index 0000000000000000000000000000000000000000..495df68af0d3929738bc076b46e908b70cd64abb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-composited-non-stacking-child.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="resources/text-based-repaint.js"></script>
+<style>
+
+body { overflow: hidden; }
+.icon {
+ position: absolute;
+ background-color: #fdb;
+ left: 200px;
+ top: 10px;
+ width: 40px;
+ height: 40px;
+}
+.scroller {
+ overflow: scroll;
+ margin-left: 10px;
+ margin-top: 60px;
+ width: 260px;
+ height: 150px;
+ padding: 20px;
+ border: 5px solid #bce;
+}
+.list, .commit {
+ position: relative;
+ width: 180px;
+ height: 250px;
+}
+.back {
+ position: absolute;
+ z-index: -1;
+ background-color: #cdc;
+ left: 50px;
+ top: 40px;
+ width: 180px;
+ height: 100px;
+}
+
+</style>
+</head>
+<body onload="runRepaintTest()">
+<div class="icon" style="transform: translateZ(0)"></div>
+<div class="scroller">
+ <div class="list">
+ <div class="commit">
+ <div class="back"></div>
+ </div>
+ </div>
+</div>
+<script>
+function repaintTest() {
+ document.querySelector(".scroller").scrollTop = 50;
+}
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698