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

Side by Side Diff: LayoutTests/fast/css/sticky/sticky-horizontally-overconstrained-ltr-expected.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 #overflow {
7 width: 600px;
8 height: 450px;
9 overflow: hidden; /* Still scrollable with JS */
10 border: 1px solid black;
11 }
12
13 .group {
14 position: relative;
15 width: 500px;
16 height: 150px;
17 }
18
19 .container {
20 width: 400px;
21 height: 130px;
22 outline: 2px solid black;
23 }
24
25 .box {
26 width: 200px;
27 height: 130px;
28 }
29
30 .sticky {
31 position: absolute;
32 background-color: green;
33 }
34
35 .indicator {
36 position: absolute;
37 top: 0;
38 left: 0;
39 background-color: red;
40 }
41 </style>
42 <script>
43 function doTest()
44 {
45 document.getElementById('overflow').scrollLeft = 100;
46 }
47 window.addEventListener('load', doTest, false);
48 </script>
49 </head>
50 <body>
51 This test checks that right offset is ignored with overconstrained sticky positi oning and ltr text direction.
52 There should be no red.
53 <div id="overflow">
54 <div class="group">
55 <div class="indicator box" style="left: 200px;"></div>
56 <div class="container">
57 <div class="sticky box" style="left: 200px;"></div>
58 </div>
59 </div>
60
61 <div class="group" style="left: 100px">
62 <div class="indicator box" style="left: 100px;"></div>
63 <div class="container">
64 <div class="sticky box" style="left: 100px;"></div>
65 </div>
66 </div>
67
68 <div class="group" style="left: 200px">
69 <div class="indicator box" style="left: 0;"></div>
70 <div class="container">
71 <div class="sticky box"></div>
72 </div>
73 </div>
74 </div>
75 </body>
76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698