-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle clipped overflow correctly in table fragmentation.
When we reach the end of a fragmentable node that clips its overflow, children do not contribute to additional fragmentainers past that point. See kDisableFragmentation in NGBreakStatus and RelayoutWithoutFragmentation() in NGLayoutAlgorithm for details. The table code didn't handle this correctly. Use InvolvedInBlockFragmentation() instead of checking if block fragmentation is active, so that we also handle cases where there's an incoming break token, but no more fragmentation is to take place. Table captions need to be re-laid out when we're re-laying out without fragmentation, so that we resume at the break tokens, instead of starting from scratch. Bug: 1459623 Change-Id: I90281cc5dcc1225865daa6ac755534631753df41 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4793490 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/main@{#1185457}
- Loading branch information
Showing
2 changed files
with
28 additions
and
10 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
10 changes: 10 additions & 0 deletions
10
...web_tests/external/wpt/css/css-multicol/crashtests/table-caption-in-clipped-overflow.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,10 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1459623"> | ||
<div style="columns:3; column-fill:auto; height:100px;"> | ||
<div style="overflow:clip;"> | ||
<div style="display:table-caption; max-height:190px;"> | ||
<div style="height:230px;"></div> | ||
</div> | ||
</div> | ||
</div> |