tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 27b6671b59fb85f606a3abdab605900a9b061f04
parent 1514e1e2225c6ca2d48aaab4a6c89cd6c72c64e6
Author: Andreu Botella <abotella@igalia.com>
Date:   Fri,  3 Oct 2025 08:57:47 +0000

Bug 1990185 [wpt PR 55008] - Update test reference to allow hyphen-minus as the hyphenation character, a=testonly

Automatic update from web-platform-tests
Update test reference to allow hyphen-minus as the hyphenation character

The test `css/css-overflow/line-clamp/block-ellipsis-028.html` was
added in #54917, including a soft hyphen in the test and a hyphen
character (U+2010) in the reference.

However, unless the `hyphenate-character` CSS property is set to a
string, the actual hyphen string that replaces the soft hyphen is set
by the user agent, depending on the content language. In this case,
the language is English, and a hyphen character might be expected.
However, some user agents (such as Chromium) also take the used font
into account, and might use a hyphen-minus (U+002D) instead.

This patch adds two references for this test, one using hyphen, and
one using hyphen-minus. Additionally, it also updates the references
to not set `line-clamp: 2`, which is the feature under test.

--

wpt-commits: 231c35a7f850bd02d935ca0d914902871ae91e82
wpt-pr: 55008

Diffstat:
Mtesting/web-platform/tests/css/css-overflow/line-clamp/block-ellipsis-028.html | 3++-
Atesting/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref-a.html | 15+++++++++++++++
Atesting/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref-b.html | 15+++++++++++++++
Dtesting/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref.html | 16----------------
4 files changed, 32 insertions(+), 17 deletions(-)

diff --git a/testing/web-platform/tests/css/css-overflow/line-clamp/block-ellipsis-028.html b/testing/web-platform/tests/css/css-overflow/line-clamp/block-ellipsis-028.html @@ -4,7 +4,8 @@ <link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis"> -<link rel="match" href="reference/block-ellipsis-028-ref.html"> +<link rel="match" href="reference/block-ellipsis-028-ref-a.html"> +<link rel="match" href="reference/block-ellipsis-028-ref-b.html"> <meta name="assert" content="Soft hyphens create opportunities for placement of the block-ellipsis"> <style> .clamp { diff --git a/testing/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref-a.html b/testing/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref-a.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Overflow: test reference</title> +<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> +<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> +<style> +.clamp { + width: 63.1ch; + border: 1px solid black; + font-family: monospace; +} +</style> +<div class="clamp">This time, Mark, who had always been the center of attention in +any social gathering, walked into the room uncharacteristi&#x2010;… +</div> diff --git a/testing/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref-b.html b/testing/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref-b.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Overflow: test reference</title> +<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> +<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> +<style> +.clamp { + width: 63.1ch; + border: 1px solid black; + font-family: monospace; +} +</style> +<div class="clamp">This time, Mark, who had always been the center of attention in +any social gathering, walked into the room uncharacteristi-… +</div> diff --git a/testing/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref.html b/testing/web-platform/tests/css/css-overflow/line-clamp/reference/block-ellipsis-028-ref.html @@ -1,16 +0,0 @@ -<!DOCTYPE html> -<meta charset="utf-8"> -<title>CSS Overflow: test reference</title> -<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> -<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> -<style> -.clamp { - line-clamp: 2; - width: 63.1ch; - border: 1px solid black; - font-family: monospace; -} -</style> -<div class="clamp">This time, Mark, who had always been the center of attention in -any social gathering, walked into the room uncharacteristi&#x2010;… -</div>