-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[table-fragmentation] Remove rowspan avoidance logic.
When a cell was rowspanned we'd try to avoid breaking inside it as this makes the logic circular. This however had the undesired effect of rowspanned cells which are larger than the current page looking undesirable, and creating large gaps when printing. This removes the avoidance logic, at the expense of the rowspanned cell not having the correct height if the table has grown due to fragmentation. (cherry picked from commit 631b6db) Bug: 1396218 Change-Id: I10c0afc7bbc5d3ed3323b33417ee2ee22d191404 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4136462 Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1090941} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4166380 Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#283} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information
Showing
9 changed files
with
34 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
third_party/blink/web_tests/external/wpt/css/css-break/table/table-rowspan-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1396218"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:2; width:100px; gap:0; column-fill:auto; height:100px; background:red;"> | ||
<table cellpadding="0" cellspacing="0"> | ||
<tr> | ||
<td style="width:25px; height:20px; background:green;"></td> | ||
<td style="width:25px; height:20px; background:green;"></td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2" style="background:green;"></td> | ||
<td style="height:20px; background:green;"></td> | ||
</tr> | ||
<tr> | ||
<td style="height:160px; background:green;"></td> | ||
</tr> | ||
</table> | ||
</div> |