Index: third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html |
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html b/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b29642e1a0aa27f3a81f7881e35e7180a4c3b11f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
wkorman
2016/08/18 23:48:11
This new test is a version of flackr@'s fast/scrol
|
+<script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+<style> |
+#scroller { |
+ background: gray local; |
+ overflow: scroll; |
+ width: 200px; |
+ height: 200px; |
+ will-change: transform; |
+} |
+ |
+#spacer { |
+ height: 500px; |
+} |
+</style> |
+<!-- Passes if text in scroller is visible and scroller background is blue. --> |
+<div id="scroller"> |
+ <div id="spacer"></div> |
+ <p>Text content</p> |
+</div> |
+<script> |
+window.testIsAsync = true; |
+ |
+function repaintTest() { |
+ scroller.scrollTop = 500; |
+ scroller.style.backgroundColor = 'blue'; |
+ finishRepaintTest(); |
+} |
+ |
+onload = runRepaintAndPixelTest; |
+</script> |