Closed Bug 1863421 Opened 11 months ago Closed 7 months ago

Table fragmentation wrongly reserves space for border-spacing and border

Categories

(Core :: Layout: Tables, defect)

defect

Tracking

()

VERIFIED FIXED
125 Branch
Tracking Status
firefox125 --- verified
firefox126 --- verified

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(6 files)

Attached file Testcase #1

Steps to reproduce:

  1. Load the testcase #1 attached.
  2. Open print-preview.

There shouldn't be any border-spacing added to the content area at the bottom of the first page and the top of the second page.

We've got the same bug here just for border, FWIW (no border-spacing required). i.e. if you view the attached testcase and un-tick border-spacing rule, Firefox still reserves space at the bottom of the first page and the top of the second page, even though we don't actually draw a table-border there.

(Chrome does not reserve that space; and we don't do that for equivalent scenarios with just blocks. So it's pretty-clearly wrong. Though it would be correct in a box-decoration-break:clone situation.)

Summary: Table fragmentation wrongly adds border-spacing → Table fragmentation wrongly reserves space for border-spacing and border
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Blocks: 1648947
Depends on: 1866836
Depends on: 1867916

The testcases in our own reftest frameworks are modified to reflect the current
rendering. The main difference after this patch is that we don't apply row
spacing at the block-start edge in the table continuations.

Depends on D195332

In Part 2, we add "a" variant to exercise auto block-size on table elements.

This patch adds other variants.

  • "b" variant exercises fixed block-size on table elements.
  • "c" variant exercises auto block-size and box-decoration-break:clone on
    table elements.
  • "d" variant exercises fixed block-size and box-decoration-break:clone on
    table elements.
Attachment #9366638 - Attachment description: Bug 1863421 Part 1 - Fix table's available size and final desired size. → Bug 1863421 Part 1 - Stop reserving row-spacing at the block-start edge in table continuations.
Pushed by tlin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98473d4fe576 Part 1 - Stop reserving row-spacing at the block-start edge in table continuations. r=dholbert https://hg.mozilla.org/integration/autoland/rev/a831daee712b Part 2 - Add web-platform-tests for table printing. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/994242ac700d Part 3 - Add more web-platform-tests for table printing. r=layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44953 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Upstream PR merged by moz-wptsync-bot
Pushed by nbeleuzu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ea75ed91b67 for causing unexpected passes on table-nested-1308876-1.xhtml CLOSED TREE

Reproducible on a 2024-03-05 Nightly build on macOS 12.
Verified as fixed on Firefox Nightly 126.0a1 and Firefox 125.0b4 on macOS 12, Windows 10, Ubuntu 22.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: