Closed Bug 2091893 Opened 17 days ago Closed 8 days ago

[wpt-sync] Sync PR 64970 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330373

Categories

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

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Christian Biesinger <cbiesinger@igalia.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330373

WebKit export from bug: [<!---->css-<!---->overflow]<!----> Forced line breaks in a text-<!---->overflow string are not converted to a space

<pre>
[css-overflow] Forced line breaks in a text-overflow string are not converted to a space

"All forced line breaks inside the specified string (regardless of white-space value) must be collapsed, as defined for
collapsible segment breaks in CSS Text 3 § 4.1.3 Segment Break Transformation Rules."
<a href="https://drafts.csswg.org/css-overflow-4/#overflow-string">https://drafts.csswg.org/css-overflow-4/#overflow-string</a>
<a href="https://drafts.csswg.org/css-overflow-4/#valdef-block-ellipsis-string">https://drafts.csswg.org/css-overflow-4/#valdef-block-ellipsis-string</a>

WebKit used the strings of text-overflow and block-ellipsis as is. A single line feed looked right only because it is
measured and painted like a space, but consecutive line feeds showed as several spaces, and the other forced line breaks
(U+000B, U+000C, U+0085, U+2028 and U+2029) were not converted. Now TextUtil::ellipsisStringWithCollapsedForcedLineBreaks
converts each sequence of them to a single space, as Chromium does for text-overflow. The computed values keep the strings
as specified.

Segment breaks between East Asian characters are still converted to a space rather than removed
(text-overflow-string-024.tentative.html to 026), since the spec defers that behavior
(<a href="https://github.com/w3c/csswg-drafts/issues/5017).">https://github.com/w3c/csswg-drafts/issues/5017).</a>

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=330373">https://bugs.webkit.org/show_bug.cgi?id=330373</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/326188@main">https://commits.webkit.org/326188@main</a>
</pre>

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 356 tests

Status Summary

Firefox

OK : 2
PASS: 12[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 15[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 272[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 273[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] 275[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 1[GitHub] 82[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 84[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] 85[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

FAIL: 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: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.