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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html

Issue 2368093002: Handle repeated headers when more than one table in paged context (Closed)
Patch Set: Created 4 years, 3 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/fragmentation/repeating-thead-multiple-tables.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-starts-middle-of-page.html b/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html
similarity index 73%
copy from third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-starts-middle-of-page.html
copy to third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html
index 41cc641476840dd66a3c338877df9fe079a44216..c24370297530d18fbdd065ff2012bb367bf4abe7 100644
--- a/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-starts-middle-of-page.html
+++ b/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html
@@ -3,28 +3,18 @@
table {
border-collapse: collapse;
}
-td, th {
- background-color: #ddd;
- border: 1px solid black;
-}
thead, tr {
break-inside: avoid;
}
</style>
-<p>crbug.com/24826: A table header group repeats on each page, even when the first one starts in the middle of the first page.</p>
-<div style="-webkit-columns:3; line-height: 20px; column-fill: auto; height:190px; background-color: yellow;">
- <br>
- <br>
- <br>
- <table>
- <thead>
+<p>crbug.com/621258: Don't let repeating headers overlap on pages that contain two tables.</p>
+<div style="-webkit-columns:3; line-height: 20px; column-fill: auto; height:190px;">
+ <table id="top">
+ <thead id="top-thead">
<tr>
- <th>Col 1</th>
- <th>Col 2</th>
+ <th colspan="2"><div>Col 1</div></th>
</tr>
</thead>
- <tbody>
- <tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
@@ -34,6 +24,15 @@ thead, tr {
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
+ </table>
+ <br>
+ <br>
+ <table id="second">
+ <thead id="top-thead">
+ <tr>
+ <th colspan="2"><div>Col 2</div></th>
+ </tr>
+ </thead>
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
@@ -47,7 +46,6 @@ thead, tr {
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
<tr><td>Te</td><td>xt</td></tr>
- </tbody>
</table>
</div>

Powered by Google App Engine
This is Rietveld 408576698