Skip to content

Commit 3c595e2

Browse files
committed
Bug 1967972 [wpt PR 52725] - [ident] Resolve ident() in registered custom properties,
Automatic update from web-platform-tests [ident] Resolve ident() in registered custom properties Additionally, add a basic crash test for property while we wait for Issue 12219 to resolve. w3c/csswg-drafts#12219 Bug: 384930424 Change-Id: I36c215cac8558dbc964fda366e2ddba3c7b2017a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6578154 Commit-Queue: Anders Hartvoll Ruud <andruudchromium.org> Reviewed-by: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1464032} -- wpt-commits: 85eadd1d77986f1687cf2310c3201ee5f37c1f3a wpt-pr: 52725 Differential Revision: https://phabricator.services.mozilla.com/D251001 UltraBlame original commit: 0d6a6d8af802e9848e14238cab4e67e880ea47bc
1 parent c555c86 commit 3c595e2

File tree

1 file changed

+278
-0
lines changed

1 file changed

+278
-0
lines changed
Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
<
2+
!
3+
DOCTYPE
4+
html
5+
>
6+
<
7+
title
8+
>
9+
CSS
10+
Properties
11+
Values
12+
API
13+
:
14+
Registered
15+
custom
16+
properties
17+
with
18+
ident
19+
(
20+
)
21+
<
22+
/
23+
title
24+
>
25+
<
26+
link
27+
rel
28+
=
29+
"
30+
help
31+
"
32+
href
33+
=
34+
"
35+
https
36+
:
37+
/
38+
/
39+
drafts
40+
.
41+
csswg
42+
.
43+
org
44+
/
45+
css
46+
-
47+
values
48+
-
49+
5
50+
/
51+
#
52+
ident
53+
"
54+
>
55+
<
56+
link
57+
rel
58+
=
59+
"
60+
help
61+
"
62+
href
63+
=
64+
"
65+
https
66+
:
67+
/
68+
/
69+
drafts
70+
.
71+
csswg
72+
.
73+
org
74+
/
75+
css
76+
-
77+
properties
78+
-
79+
values
80+
-
81+
api
82+
-
83+
1
84+
"
85+
>
86+
<
87+
script
88+
src
89+
=
90+
"
91+
/
92+
resources
93+
/
94+
testharness
95+
.
96+
js
97+
"
98+
>
99+
<
100+
/
101+
script
102+
>
103+
<
104+
script
105+
src
106+
=
107+
"
108+
/
109+
resources
110+
/
111+
testharnessreport
112+
.
113+
js
114+
"
115+
>
116+
<
117+
/
118+
script
119+
>
120+
<
121+
style
122+
>
123+
property
124+
-
125+
-
126+
ident
127+
{
128+
syntax
129+
:
130+
"
131+
<
132+
custom
133+
-
134+
ident
135+
>
136+
"
137+
;
138+
inherits
139+
:
140+
true
141+
;
142+
initial
143+
-
144+
value
145+
:
146+
none
147+
;
148+
}
149+
<
150+
/
151+
style
152+
>
153+
<
154+
div
155+
id
156+
=
157+
target
158+
>
159+
<
160+
/
161+
div
162+
>
163+
<
164+
script
165+
>
166+
let
167+
actual_ident
168+
=
169+
'
170+
ident
171+
(
172+
"
173+
-
174+
-
175+
myident
176+
"
177+
calc
178+
(
179+
42
180+
*
181+
sign
182+
(
183+
1em
184+
-
185+
1px
186+
)
187+
)
188+
)
189+
'
190+
;
191+
let
192+
expected_ident
193+
=
194+
'
195+
-
196+
-
197+
myident42
198+
'
199+
;
200+
test
201+
(
202+
(
203+
t
204+
)
205+
=
206+
>
207+
{
208+
t
209+
.
210+
add_cleanup
211+
(
212+
(
213+
)
214+
=
215+
>
216+
{
217+
target
218+
.
219+
style
220+
=
221+
'
222+
'
223+
;
224+
}
225+
)
226+
target
227+
.
228+
style
229+
.
230+
setProperty
231+
(
232+
'
233+
-
234+
-
235+
ident
236+
'
237+
actual_ident
238+
)
239+
;
240+
assert_equals
241+
(
242+
getComputedStyle
243+
(
244+
target
245+
)
246+
.
247+
getPropertyValue
248+
(
249+
'
250+
-
251+
-
252+
ident
253+
'
254+
)
255+
expected_ident
256+
)
257+
;
258+
}
259+
'
260+
The
261+
ident
262+
(
263+
)
264+
function
265+
is
266+
resolved
267+
in
268+
a
269+
registered
270+
custom
271+
property
272+
'
273+
)
274+
;
275+
<
276+
/
277+
script
278+
>

0 commit comments

Comments
 (0)