We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 187a49d commit 504b051Copy full SHA for 504b051
css-properties-values-api/Overview.bs
@@ -245,8 +245,17 @@ with a <code>name</code> set to its sole argument.
245
<a>associated <code>Document</code></a>'s
246
{{[[registeredPropertySet]]}} slot.
247
248
- 2. If |property set|
249
- contains a record with a property name matching |name|
+ 2. Attempt to parse |name|
+ as a <<custom-property-name>>.
250
+ If this fails,
251
+ <a>throw</a> a {{SyntaxError}}
252
+ and exit this algorithm.
253
+
254
+ Otherwise,
255
+ let |parsed name| be the parsed value.
256
257
+ 3. If |property set|
258
+ contains a record with a property name matching |parsed name|
259
(compared codepoint-wise),
260
remove the record from |property set|.
261
0 commit comments