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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/inline-sticky-anonymous-container-expected.html

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make sticky vertical ref tests expectations not dependent on font size. Created 4 years, 8 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 <style>
3 body {
4 height: 2000px;
5 margin: 0;
6 overflow: hidden;
7 padding: 0;
8 }
9 .sticky {
10 width: 200px;
11 height: 200px;
12 background-color: green;
13 display: inline-block;
14 position: relative;
15 top: 200px;
16 }
17 .block {
18 width: 200px;
19 height: 200px;
20 background-color: red;
21 }
22 </style>
23 <script>
24 function doTest()
25 {
26 window.scrollTo(0, 200);
27 }
28 window.addEventListener('load', doTest, false);
29 </script>
30 <span class="sticky"></span>
31 <div class="block"></div>
32
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698