Closed Bug 2060385 Opened 4 months ago Closed 17 days ago

Height of the table's head with combination of writing-mode vertical-*/sideways-* and rowspan > 1.

Categories

(Core :: Layout: Tables, defect)

Firefox 153
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: celisej567, Assigned: celisej567)

References

Details

Attachments

(2 external files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0

Steps to reproduce:

Add rowspan=2 and writing-mode=sideways-lr to the <td> and <th> tags.

Actual results:

Physical height of <td> and <th> blocks are being calculated wrongly. What i guess is happening is that it calculates it's height before applying writing-mode properly.

Expected results:

What's important is that this bug is actually a regression. In firefox 130 is does work properly. Ive tried to investigate the problem myself in source code, but seems like somewhere between 130 and 153 versions logic has changed so much that i genuenly have no idea where to look at this point.

Seems like these Bug ID's refers to the similar problem.
#1995428
#2003762
#2010144

Ive tested this behavior in here:
https://maxik34.github.io/sevenwiki/en/windows-7/files/aero.msstyles/structure/#class-globals

OS: Unspecified → Linux
Hardware: Unspecified → x86_64

The Bugbug bot thinks this bug should belong to the 'Core::Disability Access APIs' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General
Component: General → Layout: Tables
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

The final reflow of orthogonal cell content, added in bug 1961753, used the
block-size of the cell's first row, so cells with rowspan > 1 laid out their
content too short and the rows they span didn't grow to fit it. Do that reflow
from the row group after CalculateRowBSizes instead, and keep the cell's desired
size so that it still drives the row sizing.

Assignee: nobody → celisej567
Status: NEW → ASSIGNED
Duplicate of this bug: 2010144

The reference uses the same collapsed-border table with non-orthogonal content,
so it doesn't depend on how the collapsed borders are split between the cell and
the table.

Duplicate of this bug: 2003762

I'm landing the patch & test here, as it's a clear improvement over the existing very-broken behavior. One remaining issue is that text-align doesn't work correctly in the orthogonal row-spanned cells. See bug 1995428 for an existing report of this: the testcase there will be substantially improved by this fix, but still fails to apply center-alignment.

See Also: → 1995428
Pushed by jkew@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b2be7627fa74 https://hg.mozilla.org/integration/autoland/rev/ee0382e7b087 Reflow orthogonal row-spanning table cells once the rows they span are sized. r=layout-reviewers,jfkthame https://github.com/mozilla-firefox/firefox/commit/6f13629728c5 https://hg.mozilla.org/integration/autoland/rev/88b4dd4d70df Add a test for orthogonal row-spanning table cells with collapsed borders. r=jfkthame
Blocks: 1995428
Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/65238 for changes under testing/web-platform/tests

Upstream PR merged by moz-wptsync-bot

QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: