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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/repeating-thead-no-room-for-content-row-on-first-page.html

Issue 2199553002: Don't repeat header groups when one row of content doesn't fit on the first page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 621258 Created 4 years, 5 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-no-room-for-content-row-on-first-page.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-no-room-for-content-row-on-first-page.html b/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-no-room-for-content-row-on-first-page.html
new file mode 100644
index 0000000000000000000000000000000000000000..4fc9c30b5dd6cd80e9bc659a3afc07023f609bb1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/repeating-thead-no-room-for-content-row-on-first-page.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<style>
+table {
+ border-collapse: collapse;
+}
+thead, tr {
+ break-inside: avoid;
+}
+</style>
+<p>crbug.com/621258: Drop the repeated header if there isn't room for at least one content row on the page.</p>
+<div style="-webkit-columns:3; line-height: 20px; column-fill: auto; height:190px;">
+ <table id="top">
+ <thead id="top-thead">
+ <tr>
+ <th><div style="height: 180px;">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>
+ <tr><td>Te</td><td>xt</td></tr>
+ <tr><td class="cell" data-total-y=380>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 class="cell" data-total-y=570>Te</td><td>xt</td></tr>
+ <tr><td>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