Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Unified Diff: LayoutTests/paint/overflow/fixed-background-scroll-window.html

Issue 1332643002: Fix fixed-background offset issue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/paint/overflow/fixed-background-scroll-window.html
diff --git a/LayoutTests/paint/overflow/fixed-background-scroll-window.html b/LayoutTests/paint/overflow/fixed-background-scroll-window.html
new file mode 100644
index 0000000000000000000000000000000000000000..3c6c66385eebc240b89ea21a4fdd26a4d7e49e10
--- /dev/null
+++ b/LayoutTests/paint/overflow/fixed-background-scroll-window.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+::-webkit-scrollbar {
+ display: none;
+}
+</style>
+<body style="height: 4000px; background: linear-gradient(red, blue); background-attachment: fixed">
+<p style="position: absolute; top: 1100px">
+Tests painting of fixed background content in scrolled container.
+Passes if the background doesn't scroll.
+</p>
+<script>
+onload = function() {
+ window.scrollTo(0, 1000);
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698