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> |