Index: LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed.html |
diff --git a/LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed.html b/LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8c371ac608cff0953595ab7ccbfc14dbdecf4fe5 |
--- /dev/null |
+++ b/LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<style> |
+body { |
+ background-image: linear-gradient(red, blue); |
+ background-attachment: fixed; |
+ margin: 0; |
+} |
+</style> |
+<script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+<script> |
+if (window.testRunner) |
+ window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(false); |
+ |
+function repaintTest() { |
+ window.scrollTo(0, 1000); |
+} |
+ |
+window.onload = function() { |
+ runRepaintTest(); |
+}; |
+</script> |
+<div style="height: 5000px"> |
+Tests that scrolling a frame with background-attachment: fixed invalidates the entire viewport. |
+</div> |