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

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

Issue 2363313002: Offset repeating theads correctly when two tables adjoin at a page border (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/single-cells-multiple-tables-no-repeating-thead.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html b/third_party/WebKit/LayoutTests/fragmentation/single-cells-multiple-tables-no-repeating-thead.html
similarity index 66%
copy from third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html
copy to third_party/WebKit/LayoutTests/fragmentation/single-cells-multiple-tables-no-repeating-thead.html
index c24370297530d18fbdd065ff2012bb367bf4abe7..1adda7f018ed441597504bf854c5674e09360ab1 100644
--- a/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-multiple-tables.html
+++ b/third_party/WebKit/LayoutTests/fragmentation/single-cells-multiple-tables-no-repeating-thead.html
@@ -3,14 +3,14 @@
table {
border-collapse: collapse;
}
-thead, tr {
+tr {
break-inside: avoid;
}
</style>
<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">
+ <table>
+ <thead>
<tr>
<th colspan="2"><div>Col 1</div></th>
</tr>
@@ -22,15 +22,11 @@ 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>
- <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">
+ <table>
+ <thead>
<tr>
- <th colspan="2"><div>Col 2</div></th>
+ <th colspan="2">Col 2</th>
</tr>
</thead>
<tr><td>Te</td><td>xt</td></tr>
@@ -40,12 +36,12 @@ 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>
- <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>
- <tr><td>Te</td><td>xt</td></tr>
- <tr><td>Te</td><td>xt</td></tr>
+ <tr><td id="cell" data-total-y=204>Te</td><td>xt</td></tr>
</table>
</div>
+<div id="console"></div>
+<script src="../resources/check-layout.js"></script>
+<script>
+checkLayout("#cell", document.getElementById("console"));
+</script>

Powered by Google App Engine
This is Rietveld 408576698