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

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

Issue 2219153002: Offset repeating theads correctly when two tables adjoin at a page border (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 634404 Created 4 years, 4 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/single-cells-multiple-tables-no-repeating-thead.html b/third_party/WebKit/LayoutTests/fragmentation/single-cells-multiple-tables-no-repeating-thead.html
new file mode 100644
index 0000000000000000000000000000000000000000..1adda7f018ed441597504bf854c5674e09360ab1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/single-cells-multiple-tables-no-repeating-thead.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<style>
+table {
+ border-collapse: collapse;
+}
+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>
+ <thead>
+ <tr>
+ <th colspan="2"><div>Col 1</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>
+ <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>
+ <table>
+ <thead>
+ <tr>
+ <th colspan="2">Col 2</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>
+ <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