Skip to content

Commit c5198e3

Browse files
nainarshans
authored andcommitted
Add description for StylePropertyMapReadOnly.delete() (w3c#444)
1 parent 9a425dd commit c5198e3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

css-typed-om/Overview.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,20 @@ The <dfn method for=StylePropertyMap>append(DOMString <var>property</var>,
259259
7. Append |values to append| to the end of |entry|’s list.
260260
</div>
261261

262+
<div algorithm>
263+
To <dfn>delete a StylePropertyMap</dfn> given a <var>property</var> and a list of
264+
<var>values</var>, run these steps:
265+
266+
1. If |property| does not start with two dashes (U+002D HYPHEN),
267+
let |property| be |property| [=ASCII lowercased=].
268+
269+
2. If |property| is not a [=supported property name=],
270+
[=throw=] a {{TypeError}} and exit this algorithm.
271+
272+
3. If {{StylePropertyMap}}’s [=property model=] contains an entry for |property|,
273+
remove that entry from the [=property model=].
274+
</div>
275+
262276
<div algorithm>
263277
This section describes the <dfn>algorithm that coerces value into an appropriate type for a given property</dfn>, or fails and throws a {{TypeError}}:
264278
: If |value| is a {{CSSStyleValue}},

0 commit comments

Comments
 (0)