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

Unified Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/resources/subframe-with-scroll.html

Issue 1420913008: CC AnimationHost: Fix ProgrammaticScrollAnimator detach scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/scroll-behavior/resources/subframe-with-scroll.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/resources/subframe-with-scroll.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/resources/subframe-with-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..fa56648a5f853fdae9e2acae3c46b804443f7d0e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/resources/subframe-with-scroll.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ #container {
+ width: 200px;
+ height: 200px;
+ overflow: scroll;
+ }
+ #content {
+ width: 750px;
+ height: 10000px;
+ background-color: blue;
+ }
+ </style>
+ <div id="container">
+ <div id="content"></div>
+ </div>
+ <script type="text/javascript">
+ if (window.internals)
+ internals.settings.setScrollAnimatorEnabled(true);
+
+ requestAnimationFrame(() => {
+ if (container.scrollTo)
+ container.scrollTo({left: 750, top: 10000, behavior: 'smooth'});
+ else
+ console.log('ERROR: no container.scrollTo');
+ });
+ </script>
+</head>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/subframe-scrollTo-close.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698