Index: LayoutTests/paint/overflow/fixed-background-scroll.html |
diff --git a/LayoutTests/paint/overflow/fixed-background-scroll.html b/LayoutTests/paint/overflow/fixed-background-scroll.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8740cc653cf55c30a94820195eda06dfd143cc6b |
--- /dev/null |
+++ b/LayoutTests/paint/overflow/fixed-background-scroll.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+Tests painting of fixed background content in scrolled container. |
+Passes if the background doesn't scroll. |
+<div id="container" style="width: 200px; height: 200px; overflow: hidden"> |
+ <div id="content" style="height: 2000px; background: linear-gradient(red, blue); background-attachment: fixed"></div> |
+</div> |
+<script> |
+onload = function() { |
+ container.scrollTop = 1000; |
+}; |
+</script> |