DescriptionThe first table row is pushed down by border-spacing.
We need to make sure this happens *before* laying it out when inside a
fragmentation context.
Added tests fast/multicol/balance-table-with-border-spacing.html and
fragmentation/table-with-border-spacing.html for this.
This change also fixes breaking inside border-spacing adjacent to table
rows with break-inside:avoid set. There should be no reason to prevent
breaking inside border spacing, just because it's adjacent to such table
rows, but it looks like this was the behavior we got, by accident.
Updated printing/avoid-setting-header-offset-on-header.html accordingly
and threw in an additional test
fragmentation/border-spacing-break-before-unbreakable-row.html for this
collateral fix. It's hopefully correct, since we now match Edge's behavior.
BUG=709387, 534751
Review-Url: https://codereview.chromium.org/2803383002
Cr-Commit-Position: refs/heads/master@{#469690}
Committed: https://chromium.googlesource.com/chromium/src/+/97b20197a53d323f7b2d92581d97817ea85ea0a4
Patch Set 1 #Patch Set 2 : rebase master #Patch Set 3 : rebase master #Patch Set 4 : rebase master #Patch Set 5 : rebase master #Patch Set 6 : break-inside:avoid on a row shouldn't prevent breaking inside adjacent border spacing #Messages
Total messages: 24 (16 generated)
|