Skip to content

Commit ed231a4

Browse files
andruudtabatkins
authored andcommitted
[css-properties-values-api] Remove unregisterProperty. (w3c#764)
1 parent 3e7e44f commit ed231a4

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

css-properties-values-api/Overview.bs

+2-34
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ dictionary PropertyDescriptor {
7474

7575
partial 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

106105
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
230229
is defined fully by the type selected,
231230
as 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

266234
When the <a>current global object's</a> <a>associated <code>Document</code></a>'s {{[[registeredPropertySet]]}} changes,
267235
previously syntactically invalid property values can become valid and vice versa.

0 commit comments

Comments
 (0)