Skip to content

TextOverflow: Implement bidi text support for string values#57478

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-6817921
Feb 2, 2026
Merged

TextOverflow: Implement bidi text support for string values#57478
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-6817921

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator

This CL modifies the ellipsis functionality to handle cases where the
ellipsis string value is bidirectional text. The EllipsisShapeResult
class has been introduced since bidi runs require multiple ShapeResult
objects along with their corresponding text and bidi levels.
Additionally, the ellipsis_shape_results_ has been changed to a vector
to store these objects.

Bug: 41492459, 479257822
Change-Id: I2ad35a55e780b7842936fee5f811edab213eecf2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6817921
Reviewed-by: Andreu Botella <abotella@igalia.com>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Minseong Kim <jja08111@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1577949}

This CL modifies the ellipsis functionality to handle cases where the
ellipsis string value is bidirectional text. The `EllipsisShapeResult`
class has been introduced since bidi runs require multiple ShapeResult
objects along with their corresponding text and bidi levels.
Additionally, the `ellipsis_shape_results_` has been changed to a vector
to store these objects.

Bug: 41492459, 479257822
Change-Id: I2ad35a55e780b7842936fee5f811edab213eecf2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6817921
Reviewed-by: Andreu Botella <abotella@igalia.com>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Minseong Kim <jja08111@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1577949}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 785a309 into master Feb 2, 2026
28 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-6817921 branch February 2, 2026 09:05
andreubotella added a commit that referenced this pull request Jun 8, 2026
In w3c/csswg-drafts#12617 it was resolved that the `text-overflow`
ellipsis text is treated as a bidi isolate, with the same
directionality as the containing bidi paragraph. There were previously
WPT tests for this, added in #57478.

However, although a bidi paragraph's directionality tends to be the
same as its value of the `direction` property, this is not the case
with `unicode-bidi: plaintext`, in which case the directionality is
determined by the the paragraph's context. This patch adds a test for
this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment