[wpt-sync] Sync PR 53349 - [line-clamp] Make text-wrap: balance work with the line-clamp ellipsis
Categories
(Core :: Layout: Text and Fonts, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox142 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 53349 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/53349
Details from upstream follow.
Andreu Botella <abotella@igalia.com> wrote:
[line-clamp] Make text-wrap: balance work with the line-clamp ellipsis
(This CL is an alternative approach to the crrev.com/c/6543867,
crrev.com/c/6544146 and crrev.com/c/6543587 relation chain.)With the
LineClampLineBreakingEllipsisflag, which takes into
account the width of the line-clamp ellipsis during line breaking,
this width must be passed into theLineBreakerinstance, since it
can't compute it based on the inline items.This is handled when
LineBreakeris used inInlineLayoutAlgorithm,
but it isn't when it is used inScoreLineBreakerand
ParagraphLineBreakerto implementtext-wrap: {balance,pretty}. To
maketext-wrap: balancehandle the ellipsis properly, we choose to
only implement this handling inParagraphLineBreaker, so we disable
score line breaking when line clamping. In order to determine the
ellipsis width inParagraphLineBreaker, we also add an
InlineLayoutAlgorithm::ShapeLineClampEllipsisstatic method.Although this CL does not add any support for
line-clamptogether
withtext-wrap: pretty, while working on this patch we noticed a
crash when those two features were used together. As a result, this
patch also adds atext-wrap: prettycrash test.Bug: 40336192
Change-Id: I5cbaa2d89fb8eef58908ebfe35ef356c4de24cfa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6641006
Reviewed-by: Koji Ishii \<kojii@chromium.org>
Commit-Queue: Andreu Botella \<abotella@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1477817}
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 1•10 months ago
|
||
| Assignee | ||
Comment 2•10 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 3 tests
Status Summary
Firefox
FAIL: 3
Chrome
FAIL: 3
Links
Details
New Tests That Don't Pass
- /css/css-text/white-space/text-wrap-balance-line-clamp-002.html [wpt.fyi]:
FAIL(Chrome:FAIL) - /css/css-text/white-space/text-wrap-balance-line-clamp-003.html [wpt.fyi]:
FAIL(Chrome:FAIL) - /css/css-text/white-space/text-wrap-balance-line-clamp-004.html [wpt.fyi]:
FAIL(Chrome:FAIL)
https://hg.mozilla.org/mozilla-central/rev/f9e98577c600
https://hg.mozilla.org/mozilla-central/rev/774ba1d96145
Description
•