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

Side by Side Diff: LayoutTests/fast/workers/parallax.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/jank.html ('k') | LayoutTests/fast/workers/resources/BUG.css » ('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: 1000px;
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: 20px;
44 font-family: 'IM Fell Great Primer SC', serif;
45 font-size: 3em;
46 }
47
48 </style>
49 <script>
50 var worker = null;
51
52 onload = function() {
53 // Set up worker rAF animation.
54 worker = new UIWorker('resources/parallax.js');
55 var scroller = document.getElementById('scroller');
56 var img = document.getElementById('img');
57 worker.postMessage([
58 scroller.bindAnimatedProperty('scrollTop'),
59 img.bindAnimatedProperty('transform')
60 ]);
61 }
62
63 </script>
64 <div id="scroller" class="scroller" z-index="0" style="position: absolute">
65 <div id="scrolled" class="scrolled">
66 <img id="img" src='http://wvs.topleftpixel.com/photos/scotia_plaza_tall_stitch ed.jpg' z-index="-1" style="position: absolute; transform: translateY(0)"/>
67 <div style="position: absolute">
68 This<p />stuff<p />is<p />totally<p />scrolled!
69 <p />This<p />stuff<p />is<p />totally<p />scrolled!
70 <p />This<p />stuff<p />is<p />totally<p />scrolled!
71 <p />This<p />stuff<p />is<p />totally<p />scrolled!
72 <p />This<p />stuff<p />is<p />totally<p />scrolled!
73 <p />This<p />stuff<p />is<p />totally<p />scrolled!
74 <p />This<p />stuff<p />is<p />totally<p />scrolled!
75 <p />This<p />stuff<p />is<p />totally<p />scrolled!
76 <p />This<p />stuff<p />is<p />totally<p />scrolled!
77 <p />This<p />stuff<p />is<p />totally<p />scrolled!
78 <p />This<p />stuff<p />is<p />totally<p />scrolled!
79 <p />This<p />stuff<p />is<p />totally<p />scrolled!
80 <p />This<p />stuff<p />is<p />totally<p />scrolled!
81 <p />This<p />stuff<p />is<p />totally<p />scrolled!
82 <p />This<p />stuff<p />is<p />totally<p />scrolled!
83 <p />This<p />stuff<p />is<p />totally<p />scrolled!
84 <p />This<p />stuff<p />is<p />totally<p />scrolled!
85 <p />This<p />stuff<p />is<p />totally<p />scrolled!
86 <p />This<p />stuff<p />is<p />totally<p />scrolled!
87 <p />This<p />stuff<p />is<p />totally<p />scrolled!
88 <p />This<p />stuff<p />is<p />totally<p />scrolled!
89 <p />This<p />stuff<p />is<p />totally<p />scrolled!
90 <p />This<p />stuff<p />is<p />totally<p />scrolled!
91 <p />This<p />stuff<p />is<p />totally<p />scrolled!
92 <p />This<p />stuff<p />is<p />totally<p />scrolled!
93 <p />This<p />stuff<p />is<p />totally<p />scrolled!</div>
94 </div>
95 </div>
OLDNEW
« no previous file with comments | « LayoutTests/fast/workers/jank.html ('k') | LayoutTests/fast/workers/resources/BUG.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698