Closed Bug 1812679 Opened 2 years ago Closed 2 years ago

`writing-mode: vertical-(lr|rl)` aligns at the center of box for baseline alignment no matter what

Categories

(Core :: Layout: Block and Inline, defect)

defect

Tracking

()

VERIFIED FIXED
113 Branch
Tracking Status
firefox113 --- verified
firefox114 --- verified

People

(Reporter: dshin, Assigned: dshin)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file vertical-baseline.html

STR: See attached test case.
Expected: For both sets, "A" aligns with "DE."
Actual: "A" aligns to the center of the bordered box.

Blocks: 1809568
Duplicate of this bug: 1179952
See Also: → 1809568
Summary: `writing-mode: vertical-(lr|rl)` aligns at the center of box no matter what → `writing-mode: vertical-(lr|rl)` aligns at the center of box for baseline alignment no matter what
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Severity: -- → S3
Attachment #9314345 - Attachment is obsolete: true

Previously, we simply found the center of content-box in
nsLineLayout::VerticalAlignFrames. However, this is incorrect for e.g. a div
with two lines of text where the central baseline should be the second line of
text.

Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/49646b0d59aa Handle central baseline calculation in `GetNaturalBaselineBOffset`. r=layout-reviewers,emilio

Backed out for causing mochitests failures in layout/style/test/test_revert.html.

Flags: needinfo?(dshin)

Hm, bug 1790201 expects it, but it no longer triggers.

Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11ba57726279 Handle central baseline calculation in `GetNaturalBaselineBOffset`. r=layout-reviewers,emilio

Backed out for causing Wr failures on text-combine-upright-value-all-002.html

Backout link

Push with failures

Failure log

Flags: needinfo?(dshin)

Fixed, checked all css-writing-modes/text-combine-upright WPT tests passing.

Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/948c7217a313 Handle central baseline calculation in `GetNaturalBaselineBOffset`. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Duplicate of this bug: 1794571
QA Whiteboard: [qa-113b-p2]

Reproducible on a 2023-03-23 Nightly build on macOS 12.
Verified as fixed on Firefox 113.0(build ID: 20230501151611) and Nightly 114.0a1(build ID: 20230502160708) on macOS 12, Windows 10, Ubuntu 22.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-113b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: