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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #container {
6 width: 200px;
7 height: 200px;
8 overflow: scroll;
9 }
10 #content {
11 width: 750px;
12 height: 10000px;
13 background-color: blue;
14 }
15 </style>
16 <div id="container">
17 <div id="content"></div>
18 </div>
19 <script type="text/javascript">
20 if (window.internals)
21 internals.settings.setScrollAnimatorEnabled(true);
22
23 requestAnimationFrame(() => {
24 if (container.scrollTo)
25 container.scrollTo({left: 750, top: 10000, behavior: 'smooth'});
26 else
27 console.log('ERROR: no container.scrollTo');
28 });
29 </script>
30 </head>
31 </html>
OLDNEW
« 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