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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/nested/sticky-nested-top-expected.html

Issue 2636253002: Handle nested position:sticky elements (Closed)
Patch Set: Rebase Created 3 years, 10 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 body {
7 margin: 0;
8 }
9
10 .group {
11 display: inline-block;
12 position: relative;
13 width: 250px;
14 height: 350px;
15 }
16
17 .container {
18 width: 200px;
19 height: 350px;
20 outline: 2px solid black;
21 }
22
23 .outerBox {
24 position: absolute;
25 background-color: green;
26 width: 200px;
27 height: 200px;
28 }
29
30 .innerBox {
31 position: absolute;
32 background-color: red;
33 width: 200px;
34 height: 100px;
35 }
36 </style>
37 </head>
38 <body>
39 <div class="group">
40 <div class="container">
41 <div class="outerBox" style="top: 50px;">
42 <div class="innerBox" style="top: 0;"></div>
43 </div>
44 </div>
45 </div>
46
47 <div class="group">
48 <div class="container">
49 <div class="outerBox" style="top: 50px;">
50 <div class="innerBox" style="top: 50px;"></div>
51 </div>
52 </div>
53 </div>
54
55 <div class="group">
56 <div class="container">
57 <div class="outerBox" style="top: 50px;">
58 <div class="innerBox" style="top: 100px;"></div>
59 </div>
60 </div>
61 </div>
62 </body>
63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698