Closed Bug 2085112 Opened 1 month ago Closed 9 days ago

[wpt-sync] Sync PR 63959 - Fix the expected rendering of block-ellipsis-bidi-004

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 63959 into mozilla-central (this bug is closed when the sync is complete).

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

cbiesinger <cbiesinger@wkdev.thinkpad> wrote:

Fix the expected rendering of block-ellipsis-bidi-004

The block overflow ellipsis "must be treated as an anonymous inline with unicode-bidi: isolate, with the same embedding level as the bidi paragraph, and which inherits direction from the bidi paragraph." https://drafts.csswg.org/css-overflow-4/#block-ellipsis

The paragraph is left-to-right, so the isolate is left-to-right too, and the leading U+2026 stays visually before the Arabic letters instead of after them as with <bdi dir=rtl>.

Also drop the space in front of the ellipsis. The ellipsis displaces "and smiled." back to the soft wrap opportunity after the closing quote, and the space before it is removed by white space processing phase II before the ellipsis is inserted (as block-ellipsis-030 also checks). That is also what makes the 5ch ellipsis fit in the 19ch line.

Browser behavior:

  • WebKit fails the current reference, and passes with this change.
  • Chromium fails before and after this change, because its line-clamp parser only accepts the ellipsis and no-ellipsis keywords, not a <string>, so the declaration is invalid and the paragraph wraps onto a second line.
  • Firefox fails before and after this change. It renders the ellipsis as a left-to-right isolate, as the updated reference does, but keeps the space in front of it (it also fails block-ellipsis-030).
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 365 tests and 1 subtests

Status Summary

Firefox

OK : 3
PASS: 13[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 17[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 280[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] 284[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 82[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-linux2404-64-debug, Gecko-linux2404-64-opt, 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

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0b19300b6c09 https://hg.mozilla.org/integration/autoland/rev/b08bb983dc00 [wpt PR 63959] - Fix the expected rendering of block-ellipsis-bidi-004, a=testonly
Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.