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

Side by Side Diff: LayoutTests/fast/css/sticky/sticky-stacking-context.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 }
9 .container {
10 width: 200px;
11 height: 400px;
12 outline: 2px solid black;
13 }
14
15 .box {
16 width: 200px;
17 height: 200px;
18 }
19
20 .sticky {
21 position: sticky;
22 }
23
24 .intermediate {
25 position: absolute;
26 z-index: 1;
27 background-color: green
28 }
29
30 .child {
31 position: relative;
32 background-color: red;
33 z-index: 2;
34 }
35
36 .indicator {
37 position: absolute;
38 top: 0;
39 left: 0;
40 background-color: blue;
41 z-index: 0;
42 }
43 </style>
44 </head>
45 <body>
46 <div class="indicator box"></div>
47 <div class="container">
48 <div class="intermediate box"></div>
49 <div class="sticky box">
50 <div class="child box"></div>
51 </div>
52 </div>
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698