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

Side by Side Diff: LayoutTests/fast/workers/snap.html

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/workers/scrub.html ('k') | LayoutTests/fast/workers/snap-points.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 <link href='http://fonts.googleapis.com/css?family=IM+Fell+Great+Primer+SC' rel= 'stylesheet' type='text/css'>
3 <style>
4
5 .card {
6 position: absolute;
7 left: 10px;
8 top: 10px;
9 width: 200px;
10 height: 200px;
11 background: #736F68;
12 color: #D9CCC5;
13 padding: 20px;
14 font-family: 'IM Fell Great Primer SC', serif;
15 font-size: 3em;
16 border-radius: 5px;
17 -webkit-transform: translateZ(0);
18 }
19
20 body {
21 background: #212126;
22 }
23
24 #raf {
25 position: absolute;
26 left: 700px;
27 top: 10px;
28 background: #826B54;
29 }
30
31 .scroller {
32 width: 500px;
33 height: 400px;
34 border: 2px solid black;
35 overflow-y: scroll;
36 background: #736F68;
37 }
38
39 .scrolled {
40 width: 2000px;
41 height: 9000px;
42 color: #D9CCC5;
43 padding-left: 20px;
44 font-family: 'IM Fell Great Primer SC', serif;
45 font-size: 3em;
46 }
47
48 .pic {
49 width: 400px;
50 height: 300px;
51 background-color: red;
52 }
53
54 .halfspacer {
55 height: 50px;
56 }
57
58 .spacer {
59 height: 100px;
60 }
61
62 </style>
63 <script>
64 var worker = null;
65
66 onload = function() {
67 // Set up worker rAF animation.
68 worker = new UIWorker('resources/snap.js');
69 var scroller = document.getElementById('scroller');
70 worker.postMessage([
71 scroller.bindAnimatedProperty('scrollTop'),
72 ]);
73 }
74
75 </script>
76 <div id="scroller" class="scroller" z-index="0" style="position: absolute">
77 <div id="scrolled" class="scrolled">
78 <div style="position: absolute">
79 <div class="halfspacer"></div>
80 <div class="pic"></div>
81 <div class="spacer"></div>
82 <div class="pic"></div>
83 <div class="spacer"></div>
84 <div class="pic"></div>
85 <div class="spacer"></div>
86 <div class="pic"></div>
87 <div class="spacer"></div>
88 <div class="pic"></div>
89 <div class="spacer"></div>
90 <div class="pic"></div>
91 <div class="spacer"></div>
92 <div class="pic"></div>
93 <div class="spacer"></div>
94 <div class="pic"></div>
95 <div class="spacer"></div>
96 <div class="pic"></div>
97 <div class="spacer"></div>
98 <div class="pic"></div>
99 <div class="spacer"></div>
100 <div class="pic"></div>
101 <div class="spacer"></div>
102 <div class="pic"></div>
103 </div>
104 </div>
105 </div>
OLDNEW
« no previous file with comments | « LayoutTests/fast/workers/scrub.html ('k') | LayoutTests/fast/workers/snap-points.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698