Skip to content

Commit 92eee86

Browse files
committed
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 UltraBlame original commit: 5fa1ef8ebdb8f0d707ec4d9488bf6b059d07f792
1 parent 3e84582 commit 92eee86

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

testing/web-platform/tests/css/css-overflow/line-clamp/block-ellipsis-028.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<link rel="author" title="Andreu Botella" href="mailto:[email protected]">
55
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
66
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis">
7-
<link rel="match" href="reference/block-ellipsis-028-ref.html">
7+
<link rel="match" href="reference/block-ellipsis-028-ref-a.html">
8+
<link rel="match" href="reference/block-ellipsis-028-ref-b.html">
89
<meta name="assert" content="Soft hyphens create opportunities for placement of the block-ellipsis">
910
<style>
1011
.clamp {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
66
<style>
77
.clamp {
8-
line-clamp: 2;
98
width: 63.1ch;
109
border: 1px solid black;
1110
font-family: monospace;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: test reference</title>
4+
<link rel="author" title="Andreu Botella" href="mailto:[email protected]">
5+
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
6+
<style>
7+
.clamp {
8+
width: 63.1ch;
9+
border: 1px solid black;
10+
font-family: monospace;
11+
}
12+
</style>
13+
<div class="clamp">This time, Mark, who had always been the center of attention in
14+
any social gathering, walked into the room uncharacteristi-…
15+
</div>

0 commit comments

Comments
 (0)