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

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

Issue 103213002: position:sticky should stick for the enclosing overflow ancestor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 .group {
7 display: inline-block;
8 position: relative;
9 width: 150px;
10 height: 500px;
11 }
12
13 #overflow {
14 width: 600px;
15 height: 550px;
16 overflow: hidden;
17 border: 1px solid black;
18 }
19
20 .spacer {
21 float: left;
22 width: 10px;
23 height: 1200px;
24 }
25 .container {
26 width: 100px;
27 height: 400px;
28 outline: 2px solid black;
29 }
30
31 .box {
32 width: 100px;
33 height: 200px;
34 }
35
36 .sticky {
37 position: relative;
38 top: 100px;
39 background-color: green;
40 }
41 </style>
42 </head>
43 <body>
44 <div id="overflow">
45 <div class="spacer"></div>
46
47 <div class="group" style="top: -120px">
48 <div class="container">
49 <div class="sticky box" style="top: 200px"></div>
50 </div>
51 </div>
52
53 <div class="group" style="top: -20px">
54 <div class="container">
55 <div class="sticky box" style="top: 120px"></div>
56 </div>
57 </div>
58
59 <div class="group" style="top: 120px">
60 <div class="container">
61 <div class="sticky box" style="top: 0"></div>
62 </div>
63 </div>
64 </div>
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698