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

Side by Side Diff: LayoutTests/fast/css/sticky/sticky-table-thead-top-expected.html

Issue 143653008: Enable sticky positioning for table elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Got better fix for containingBlock() from webkit and updated by review comments. Created 6 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 body { 6 body {
7 margin: 0; 7 margin: 0;
8 height: 2000px;
9 overflow: hidden; /* hide scrollbars */
8 } 10 }
9 11
10 .group { 12 .group {
11 display: inline-block; 13 display: inline-block;
12 position: relative; 14 position: relative;
13 width: 250px; 15 width: 250px;
14 height: 500px; 16 height: 500px;
15 } 17 }
16 18
17 .container { 19 .container {
18 width: 200px; 20 width: 200px;
19 height: 400px; 21 height: 400px;
20 outline: 2px solid black; 22 outline: 2px solid black;
21 } 23 }
22 24
23 .box { 25 .box {
24 width: 200px; 26 width: 200px;
25 height: 200px; 27 height: 200px;
26 } 28 }
27 29
28 .sticky { 30 .sticky {
29 position: absolute; 31 position: absolute;
30 background-color: green; 32 background-color: green;
31 } 33 }
32 34
33 .indicator { 35 .indicator {
34 position: absolute; 36 position: absolute;
35 top: 0; 37 top: 0;
36 left: 0; 38 left: 0;
37 background-color: red; 39 background-color: red;
38 } 40 }
39 </style> 41 </style>
40 </head> 42 </head>
41 <body> 43 <body>
42 <div class="group" style="top: -100px;"> 44 <div class="group" style="top: -100px;">
43 <div class="indicator box" style="top: 200px;"></div> 45 <div class="indicator box" style="top: 200px;"></div>
44 <div class="container"> 46 <div class="container">
45 <div class="sticky box" style="top: 200px;"></div> 47 <div class="sticky box" style="top: 200px;"></div>
46 </div> 48 </div>
47 </div> 49 </div>
48 50
49 <div class="group" style="top: 0"> 51 <div class="group" style="top: 0">
50 <div class="indicator box" style="top: 100px;"></div> 52 <div class="indicator box" style="top: 100px;"></div>
51 <div class="container"> 53 <div class="container">
52 <div class="sticky box" style="top: 100px;"></div> 54 <div class="sticky box" style="top: 100px;"></div>
53 </div> 55 </div>
54 </div> 56 </div>
55 57
56 <div class="group" style="top: 100px"> 58 <div class="group" style="top: 100px">
57 <div class="indicator box" style="top: 0;"></div> 59 <div class="indicator box" style="top: 0;"></div>
58 <div class="container"> 60 <div class="container">
59 <div class="sticky box" style="top: 0;"></div> 61 <div class="sticky box" style="top: 0;"></div>
60 </div> 62 </div>
61 </div> 63 </div>
64 <div style="position: absolute; top: 520px;">
65 This test checks that sticky positioned table theads are contained by their table.
66 There should be no red.
67 </div>
62 </body> 68 </body>
63 </html> 69 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-table-thead-top.html ('k') | Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698