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

Side by Side Diff: LayoutTests/fast/css/sticky/replaced-sticky.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 overflow: hidden; /* hide scrollbars */
10 }
11
12 .group {
13 display: inline-block;
14 position: relative;
15 width: 250px;
16 height: 500px;
17 }
18
19 .container {
20 width: 200px;
21 height: 400px;
22 outline: 2px solid black;
23 }
24
25 .box {
26 width: 200px;
27 height: 200px;
28 }
29
30 .sticky {
31 background-color: silver;
32 position: sticky;
33 top: 100px;
34 }
35
36 .indicator {
37 display: none;
38 position: absolute;
39 top: 250px;
40 left: 50px;
41 background-color: red;
42 }
43 </style>
44 <script>
45 function doTest()
46 {
47 window.scrollTo(0, 100);
48 }
49 window.addEventListener('load', doTest, false);
50 </script>
51 </head>
52 <body>
53 <div class="group">
54 <div class="indicator box"></div>
55 <div class="container">
56 <img src="../resources/greenbox.png" class="sticky box">
57 </div>
58 </div>
59
60 <div class="group" style="top: 100px">
61 <div class="indicator box"></div>
62 <div class="container">
63 <img src="../resources/greenbox.png" class="sticky box">
64 </div>
65 </div>
66
67 </body>
68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698