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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-table-th-top.html

Issue 2711803002: Disallow 'position: sticky' on <thead> and <tr> elements. (Closed)
Patch Set: Correct layout tests Created 3 years, 9 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 <script> 2 <script>
3 if (window.internals) { 3 if (window.internals) {
4 internals.settings.setCSSStickyPositionEnabled(true); 4 internals.settings.setCSSStickyPositionEnabled(true);
5 } 5 }
6 </script> 6 </script>
7 7
8 <html> 8 <html>
9 <head> 9 <head>
10 <style> 10 <style>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 { 57 {
58 window.scrollTo(0, 100); 58 window.scrollTo(0, 100);
59 } 59 }
60 window.addEventListener('load', doTest, false); 60 window.addEventListener('load', doTest, false);
61 </script> 61 </script>
62 </head> 62 </head>
63 <body> 63 <body>
64 <div class="group"> 64 <div class="group">
65 <div class="indicator box" style="top: 200px;"></div> 65 <div class="indicator box" style="top: 200px;"></div>
66 <table class="container"> 66 <table class="container">
67 <thead class="sticky"> 67 <thead>
68 <tr> 68 <tr>
69 <td class="box"></td> 69 <th class="sticky box"></th>
70 </tr> 70 </tr>
71 </thead> 71 </thead>
72 <tbody> 72 <tbody>
73 <tr> 73 <tr>
74 <td></td> 74 <td></td>
75 </tr> 75 </tr>
76 </tbody> 76 </tbody>
77 </table> 77 </table>
78 </div> 78 </div>
79 79
80 <div class="group" style="top: 100px"> 80 <div class="group" style="top: 100px">
81 <div class="indicator box" style="top: 100px;"></div> 81 <div class="indicator box" style="top: 100px;"></div>
82 <table class="container" style=""> 82 <table class="container" style="">
83 <thead class="sticky"> 83 <thead>
84 <tr> 84 <tr>
85 <td class="box"></td> 85 <td class="sticky box"></td>
86 </tr> 86 </tr>
87 </thead> 87 </thead>
88 <tbody> 88 <tbody>
89 <tr> 89 <tr>
90 <td></td> 90 <td></td>
91 </tr> 91 </tr>
92 </tbody> 92 </tbody>
93 </table> 93 </table>
94 </div> 94 </div>
95 95
96 <div class="group" style="top: 200px"> 96 <div class="group" style="top: 200px">
97 <div class="indicator box" style="top: 0;"></div> 97 <div class="indicator box" style="top: 0;"></div>
98 <table class="container" style=""> 98 <table class="container" style="">
99 <thead class="sticky"> 99 <thead>
100 <tr> 100 <tr>
101 <td class="box"></td> 101 <td class="sticky box"></td>
102 </tr> 102 </tr>
103 </thead> 103 </thead>
104 <tbody> 104 <tbody>
105 <tr> 105 <tr>
106 <td></td> 106 <td></td>
107 </tr> 107 </tr>
108 </tbody> 108 </tbody>
109 </table> 109 </table>
110 </div> 110 </div>
111 <div style="position: absolute; top: 620px;"> 111 <div style="position: absolute; top: 620px;">
112 This test checks that sticky positioned table theads are contained by their table. 112 This test checks that sticky positioned table ths are contained by their tab le.
113 There should be no red. 113 There should be no red.
114 </div> 114 </div>
115 </body> 115 </body>
116 </html> 116 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698