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

Lines changed: 2 additions & 34 deletions
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
8079

@@ -100,7 +99,7 @@ following members:
10099
: initialValue
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 registerProperty(PropertyDescriptor descriptor) 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-
unregisterProperty(DOMString name).
235-
When it is called,
236-
it executes the unregister a custom property algorithm,
237-
with a name set to its sole argument.
238-
239-
240-
To unregister a custom property with the name |name|:
241-
242-
1. Let |property set|
243-
be the value of the
244-
245-
246-
{{[[registeredPropertySet]]}} slot.
247-
248-
2. Attempt to parse |name|
249-
as a <>.
250-
If this fails,
251-
throw 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-
throw a {{NotFoundError}}.
264-
232+
Note: A way to unregister properties may be added in the future.
265233

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

0 commit comments

Comments
 (0)