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

Unified Diff: LayoutTests/paint/overflow/fixed-background-scroll.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
« no previous file with comments | « no previous file | LayoutTests/paint/overflow/fixed-background-scroll-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f1e672be362048be7661fa9488f473aadb5c1e08
--- /dev/null
+++ b/LayoutTests/paint/overflow/fixed-background-scroll.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+::-webkit-scrollbar {
+ display: none;
+}
+</style>
+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: scroll">
+ <div id="content" style="height: 2000px; background: linear-gradient(red, blue); background-attachment: fixed"></div>
+</div>
+<script>
+onload = function() {
+ container.scrollTop = 1000;
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/paint/overflow/fixed-background-scroll-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698