Skip to content

Commit ecd7c4f

Browse files
committed
[css-typed-om] Clean up StyleProperty map a bit.
1 parent 2cc0c0c commit ecd7c4f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

css-typed-om/Overview.bs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ interface StylePropertyMap : StylePropertyMapReadOnly {
180180
void append(DOMString property, (CSSStyleValue or DOMString)... values);
181181
void delete(DOMString property);
182182
void set(DOMString property, (CSSStyleValue or DOMString)... values);
183-
void update(DOMString property, UpdateFunction updateFunction);
183+
void update(DOMString property, UpdateFunction updateFunction);
184184
};
185185
</pre>
186186

@@ -203,10 +203,13 @@ future without breaking code that relies on calling
203203
{{StylePropertyMap/set()}} for those properties.
204204
</div>
205205

206-
<div algorithm="append to a StylePropertyMap">
207-
The <dfn method for=StylePropertyMap>append(DOMString <var>property</var> (CSSStyleValue or DOMString)... <var>values</var>)</dfn> method,
208-
when invoked,
209-
must run these steps:
206+
The <dfn method for=StylePropertyMap>append(DOMString <var>property</var>,
207+
(CSSStyleValue or DOMString)... <var>values</var>)</dfn> method, when invoked, must
208+
[=append to a StylePropertyMap=] with property <var>property</var> and values <var>values</var>.
209+
210+
<div algorithm>
211+
To <dfn>append to a StylePropertyMap</dfn> given a <var>property</var> and a list of
212+
<var>values</var>, run these steps:
210213

211214
1. If |property| does not start with two dashes (U+002D HYPHEN),
212215
let |property| be |property| [=ASCII lowercased=].
@@ -258,7 +261,7 @@ UpdateFunction <var>updateFunction</var>)</dfn> method, when invoked, must
258261
<var>property</var>, update function <var>updateFunction</var>, and property
259262
map set to the object this method was invoked on .
260263

261-
<div algorith>
264+
<div algorithm>
262265
To <dfn>update a value in a StylePropertyMap</dfn> given a <var>property
263266
name</var>, <var>update function</var>, and <var>property map</var>, run these
264267
steps:

0 commit comments

Comments
 (0)