Pay attention to tall rowspanned cells in the first layout pass.
If a rowspanned cell gets fragmented, and this cell needs to stretch the table
rows in order to fit, only stretch the last row (i.e. the one we're currently
laying out). That's the only thing we can do if we don't want mess up
fragmentation (pagination struts) of earlier content.
Furthermore, to leave those rows completely alone, don't let a subsequent
rowspanned cell that shares at least one row with the previous rowspanned cell
stretch those rows, either, as that would lead to unfair height distribution
anyway (since the last row has already got all the extra space).
table-overlapping-rowspan.html tests this.
BUG=534751
Review-Url: https://chromiumcodereview.appspot.com/2433403002
Cr-Commit-Position: refs/heads/master@{#426590}
diff --git a/third_party/WebKit/LayoutTests/fragmentation/fragmented-rowspan-expected.html b/third_party/WebKit/LayoutTests/fragmentation/fragmented-rowspan-expected.html
new file mode 100644
index 0000000..bcc34a1d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/fragmented-rowspan-expected.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<p>The word "PASS" should be fully visible below.</p>
+<div style="margin-left:6em; line-height:20px;">
+ <br>
+ <div style="margin-left:1px;">PASS</div>
+ <div style="width:6em; background:black;">
+ <br>
+ </div>
+</div>