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: LayoutTests/fast/css/sticky/sticky-horizontally-overconstrained-rtl.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 direction: rtl;
24 }
25
26 .box {
27 width: 200px;
28 height: 130px;
29 }
30
31 .sticky {
32 position: sticky;
33 left: 600px;
34 right: 100px;
35 background-color: green;
36 }
37
38 .indicator {
39 position: absolute;
40 top: 0;
41 left: 0;
42 background-color: red;
43 }
44 </style>
45 <script>
46 function doTest()
47 {
48 document.getElementById('overflow').scrollLeft = 100;
49 }
50 window.addEventListener('load', doTest, false);
51 </script>
52 </head>
53 <body>
54 This test checks that left offset is ignored with overconstrained sticky positio ning and rtl text direction.
55 There should be no red.
56 <div id="overflow">
57 <div class="group" style="left: 400px">
58 <div class="indicator box" style="left: 0;"></div>
59 <div class="container">
60 <div class="sticky box"></div>
61 </div>
62 </div>
63
64 <div class="group" style="left: 300px">
65 <div class="indicator box" style="left: 100px;"></div>
66 <div class="container">
67 <div class="sticky box"></div>
68 </div>
69 </div>
70
71 <div class="group" style="left: 200px">
72 <div class="indicator box" style="left: 200px;"></div>
73 <div class="container">
74 <div class="sticky box"></div>
75 </div>
76 </div>
77 </div>
78 </body>
79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698