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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-table-thead-multirow-top-expected.html

Issue 2786743002: Enable position:sticky for <thead> and <tr> elements (Closed)
Patch Set: Rebase over blink reformat Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-table-thead-multirow-top-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-table-thead-multirow-top-expected.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-table-thead-multirow-top-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..5516af414bd203e572a8f6bce98cdb4b2c0e9f2a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-table-thead-multirow-top-expected.html
@@ -0,0 +1,70 @@
+<style>
+
+table {
+ border-collapse: collapse;
+}
+
+td, th {
+ height: 40px;
+ width: 40px;
+}
+
+th {
+ position: relative;
+ background: green;
+}
+
+.scroller {
+ overflow: auto;
+ height: 400px;
+}
+
+.padding {
+ height: 500px;
+}
+</style>
+
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function finishTest() {
+ document.querySelector('.scroller').scrollTop = 200;
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+window.addEventListener('load', function() {
+ requestAnimationFrame(function() {
+ requestAnimationFrame(finishTest);
+ });
+});
+</script>
+
+<div class="scroller">
+
+ <table>
+ <thead>
+ <tr>
+ <th style="top: 225px;" rowspan="2"></th>
+ <th style="top: 225px;" ></th>
+ </tr>
+ <tr>
+ <th style="top: 225px; background: fuchsia;"></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ <tr><td></td><td></td></tr>
+ </tbody>
+ </table>
+
+ <div class="padding"></div>
+
+</div>

Powered by Google App Engine
This is Rietveld 408576698