@@ -74,7 +74,6 @@ dictionary PropertyDescriptor {
74
74
75
75
partial interface CSS {
76
76
static void registerProperty(PropertyDescriptor descriptor);
77
- static void unregisterProperty(DOMString name);
78
77
};
79
78
</pre>
80
79
@@ -100,7 +99,7 @@ following members:
100
99
: <dfn dict-member for=PropertyDescriptor>initialValue</dfn>
101
100
:: The initial value of this custom property.
102
101
103
- The {{registerProperty()}} and {{unregisterProperty()}} functions {#the-registerproperty-function}
102
+ The {{registerProperty()}} function {#the-registerproperty-function}
104
103
--------------------------------------------------------------------------------------------------
105
104
106
105
The <dfn method for=CSS>registerProperty(PropertyDescriptor descriptor)</dfn> method
@@ -230,38 +229,7 @@ the process via which specified values for that property are turned into compute
230
229
is defined fully by the type selected,
231
230
as described in [[#calculation-of-computed-values]] .
232
231
233
- Properties can be unregistered using
234
- <dfn method for=CSS>unregisterProperty(DOMString name)</dfn> .
235
- When it is called,
236
- it executes the <a>unregister a custom property</a> algorithm,
237
- with a <code> name</code> set to its sole argument.
238
-
239
- <div algorithm>
240
- To <dfn>unregister a custom property</dfn> with the name |name|:
241
-
242
- 1. Let |property set|
243
- be the value of the
244
- <a>current global object's</a>
245
- <a>associated <code>Document</code></a> 's
246
- {{[[registeredPropertySet]]}} slot.
247
-
248
- 2. Attempt to parse |name|
249
- 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
-
262
- Otherwise,
263
- <a>throw</a> a {{NotFoundError}} .
264
- </div>
232
+ Note: A way to unregister properties may be added in the future.
265
233
266
234
When the <a>current global object's</a> <a>associated <code>Document</code></a> 's {{[[registeredPropertySet]]}} changes,
267
235
previously syntactically invalid property values can become valid and vice versa.
0 commit comments