Skip to content

Commit 591ed6f

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 ea8458d commit 591ed6f

File tree

3 files changed

+168
-6
lines changed

3 files changed

+168
-6
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,33 @@
133133
028
134134
-
135135
ref
136+
-
137+
a
138+
.
139+
html
140+
"
141+
>
142+
<
143+
link
144+
rel
145+
=
146+
"
147+
match
148+
"
149+
href
150+
=
151+
"
152+
reference
153+
/
154+
block
155+
-
156+
ellipsis
157+
-
158+
028
159+
-
160+
ref
161+
-
162+
b
136163
.
137164
html
138165
"
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@
8383
.
8484
clamp
8585
{
86-
line
87-
-
88-
clamp
89-
:
90-
2
91-
;
9286
width
9387
:
9488
63
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<
2+
!
3+
DOCTYPE
4+
html
5+
>
6+
<
7+
meta
8+
charset
9+
=
10+
"
11+
utf
12+
-
13+
8
14+
"
15+
>
16+
<
17+
title
18+
>
19+
CSS
20+
Overflow
21+
:
22+
test
23+
reference
24+
<
25+
/
26+
title
27+
>
28+
<
29+
link
30+
rel
31+
=
32+
"
33+
author
34+
"
35+
title
36+
=
37+
"
38+
Andreu
39+
Botella
40+
"
41+
href
42+
=
43+
"
44+
mailto
45+
:
46+
abotella
47+
igalia
48+
.
49+
com
50+
"
51+
>
52+
<
53+
link
54+
rel
55+
=
56+
"
57+
author
58+
"
59+
title
60+
=
61+
"
62+
Florian
63+
Rivoal
64+
"
65+
href
66+
=
67+
"
68+
https
69+
:
70+
/
71+
/
72+
florian
73+
.
74+
rivoal
75+
.
76+
net
77+
/
78+
"
79+
>
80+
<
81+
style
82+
>
83+
.
84+
clamp
85+
{
86+
width
87+
:
88+
63
89+
.
90+
1ch
91+
;
92+
border
93+
:
94+
1px
95+
solid
96+
black
97+
;
98+
font
99+
-
100+
family
101+
:
102+
monospace
103+
;
104+
}
105+
<
106+
/
107+
style
108+
>
109+
<
110+
div
111+
class
112+
=
113+
"
114+
clamp
115+
"
116+
>
117+
This
118+
time
119+
Mark
120+
who
121+
had
122+
always
123+
been
124+
the
125+
center
126+
of
127+
attention
128+
in
129+
any
130+
social
131+
gathering
132+
walked
133+
into
134+
the
135+
room
136+
uncharacteristi
137+
-
138+
<
139+
/
140+
div
141+
>

0 commit comments

Comments
 (0)