Automatic update from web-platform-tests TextOverflow: Implement bidi text support for string values 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-commits: 785a30987e90b2e4a278550dc5b332894eecab94 wpt-pr: 57478
27 lines
868 B
HTML
27 lines
868 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Basic User Interface Test: text-overflow with bidi string ellipsis</title>
|
|
<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-overflow-4">
|
|
<link rel="match" href="reference/text-overflow-string-006-ref.html">
|
|
<meta name="assert" content="Test checks that ellipsis string has bidirectional text.">
|
|
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
|
|
<style>
|
|
div {
|
|
font-size: 10px;
|
|
overflow: hidden;
|
|
text-overflow: "שלום 1234";
|
|
width: 150px;
|
|
}
|
|
span {
|
|
font-family: Ahem;
|
|
font-size: 30px;
|
|
}
|
|
</style>
|
|
<body>
|
|
<p>Test passes if there is an "<strong>שלום 1234</strong>" after a black rectangle below.</p>
|
|
<div>
|
|
<span>TestChecksThatTheBrokenContentRepalcedByBidiText</span>
|
|
</div>
|
|
</body>
|