Closed Bug 2082255 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63666 - [line-clamp] Make webkit-line-clamp-035 match the spec's ellipsis placement

Categories

(Core :: Layout: Scrolling and Overflow, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Christian Biesinger <cbiesinger@chromium.org> wrote:

[line-clamp] Make webkit-line-clamp-035 match the spec's ellipsis placement

The third line of webkit-line-clamp-035 is a single unbreakable word
that does not fit in the line-clamp container. The reference expected
it to be truncated to "CCC" followed by the ellipsis, as the old
-webkit-line-clamp implementations do. css-overflow-4 says that the
block overflow ellipsis displaces content from the end of the line
"until the last soft wrap opportunity [...] that would still allow the
entire block overflow ellipsis to fit on the line", and that if this
displaces the entire contents of the line box, the line box contains a
strut:
https://drafts.csswg.org/css-overflow-4/#block-ellipsis

Since the word has no soft wrap opportunity, the whole word is
displaced and the third line only contains the (hidden) ellipsis. This
updates the reference accordingly. Chromium with line-breaking ellipsis
(and WebKit with -webkit-line-clamp laid out as line-clamp) render it
this way already, while the legacy implementations now fail it.

Bug: 40336192
Change-Id: Ie730121f63330a20806c4ca53ff46544ee3d4c4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8574804
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Commit-Queue: Ian Kilpatrick \<ikilpatrick@chromium.org>
Reviewed-by: Andreu Botella \<abotella@igalia.com>
Auto-Submit: Christian Biesinger \<cbiesinger@chromium.org>
Commit-Queue: Christian Biesinger \<cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1719040}

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 311 tests

Status Summary

Firefox

OK : 2
PASS : 10[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 13[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 224[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug] 225[Gecko-windows11-64-25h2-opt] 227[Gecko-linux2404-64-debug] 228[Gecko-linux2404-64-opt]
FAIL : 1[GitHub] 83[Gecko-linux2404-64-debug] 84[Gecko-linux2404-64-opt] 86[Gecko-windows11-64-25h2-debug] 87[Gecko-windows11-64-25h2-opt] 88[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
ERROR: 2

Chrome

PASS : 1

Safari

FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.