Index: third_party/WebKit/LayoutTests/paint/invalidation/compositing/updating-scrolling-container-and-content.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/updating-scrolling-container-and-content.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/updating-scrolling-container-and-content.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3977544701dd3e5cc1a2ecb10f15210aef60fb5c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/updating-scrolling-container-and-content.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<script src="../resources/text-based-repaint.js"></script> |
+<script> |
+function repaintTest() { |
+ document.getElementById('container').style.color = "green"; |
+} |
+onload = function() { |
+ document.getElementById('container').scrollTop = 50; |
+ runRepaintAndPixelTest(); |
+}; |
+</script> |
+<style> |
+#container { |
+ overflow: scroll; |
+ width: 200px; |
+ height: 200px; |
+} |
+</style> |
+<div style="height: 100px"> |
+Tests invalidation of scrolling container and contents on change of style which affects also the contents. |
+Passes if the content text is green, and the whole content layer (if composited scrolling) is invalidated. |
+</div> |
+<div id="container"> |
+ CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT |
+</div> |