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

Side by Side Diff: LayoutTests/fast/css/sticky/sticky-top-zoomed.html

Issue 346603007: Remove position: sticky (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 body {
7 margin: 0;
8 height: 2000px;
9 }
10
11 ::-webkit-scrollbar {
12 width: 0px;
13 height: 0px;
14 }
15
16 .group {
17 display: inline-block;
18 position: relative;
19 width: 160px;
20 height: 300px;
21 }
22
23 .container {
24 width: 150px;
25 height: 300px;
26 outline: 2px solid black;
27 }
28
29 .box {
30 width: 150px;
31 height: 150px;
32 }
33
34 .sticky {
35 position: sticky;
36 top: 75px;
37 background-color: green;
38 }
39
40 .indicator {
41 position: absolute;
42 top: 0;
43 left: 0;
44 background-color: red;
45 }
46 </style>
47 <script>
48 function doTest()
49 {
50 if (window.eventSender)
51 eventSender.setPageScaleFactor(1.5);
52
53 window.scrollTo(0, 100);
54 }
55 window.addEventListener('load', doTest, false);
56 </script>
57 </head>
58 <body>
59 <div class="group">
60 <div class="indicator box" style="top: 150px;"></div>
61 <div class="container">
62 <div class="sticky box"></div>
63 </div>
64 </div>
65
66 <div class="group" style="top: 100px">
67 <div class="indicator box" style="top: 75px;"></div>
68 <div class="container">
69 <div class="sticky box"></div>
70 </div>
71 </div>
72
73 <div class="group" style="top: 200px">
74 <div class="indicator box" style="top: 0;"></div>
75 <div class="container">
76 <div class="sticky box"></div>
77 </div>
78 </div>
79 </body>
80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698