Closed Bug 1820017 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38793 - [balance-text] Fix when `text-align` is not `left`

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 38793 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/38793
Details from upstream follow.

Koji Ishii <kojii@chromium.org> wrote:

[balance-text] Fix when text-align is not left

The NGParagraphLineBreaker adjusts the available width for
the NGLineBreaker, but the adjustments should not be visible
for CreateLine because it is used for aligning lines within
the original available width.

This patch restores the line_opportunity after the
NGLineBreaker is done.

Bug: 1251079
Change-Id: I83cdf1c120a6de0741180a27d7860ef8b70475cb
Reviewed-on: https://chromium-review.googlesource.com/4304620
WPT-Export-Revision: a14133d558bb992cdca1ac81413ae6a9288b2e01

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b9a84be37c2 [wpt PR 38793] - [balance-text] Fix when `text-align` is not `left`, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.