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

Unified Diff: LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed.html

Issue 474683002: Use scrollContentsSlowPath when scrolling with background-attachment: fixed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/fast/repaint/full-viewport-repaint-for-background-attachment-fixed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/full-viewport-repaint-for-background-attachment-fixed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698