@@ -74,7 +74,6 @@ dictionary PropertyDescriptor {
7474
7575partial interface CSS {
7676 static void registerProperty(PropertyDescriptor descriptor);
77- static void unregisterProperty(DOMString name);
7877};
7978</pre>
8079
@@ -100,7 +99,7 @@ following members:
10099: <dfn dict-member for=PropertyDescriptor>initialValue</dfn>
101100:: The initial value of this custom property.
102101
103- The {{registerProperty()}} and {{unregisterProperty()}} functions {#the-registerproperty-function}
102+ The {{registerProperty()}} function {#the-registerproperty-function}
104103--------------------------------------------------------------------------------------------------
105104
106105The <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
230229is defined fully by the type selected,
231230as described in [[#calculation-of-computed-values]] .
232231
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.
265233
266234When the <a>current global object's</a> <a>associated <code>Document</code></a> 's {{[[registeredPropertySet]]}} changes,
267235previously syntactically invalid property values can become valid and vice versa.
0 commit comments