Skip to content

Commit 7a26b0e

Browse files
nainarshans
authored andcommitted
Add description for StylePropertyMapReadOnly.get() (w3c#441)
* Add description for StylePropertyMapReadOnly.get() * Ensure that the get() function works for list-valued and non-list-valued properties * Only return the first entry in a list of values for each property
1 parent 702fd86 commit 7a26b0e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

css-typed-om/Overview.bs

+9-1
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,16 @@ The <dfn method for=StylePropertyMap>append(DOMString <var>property</var>,
290290
<div algorithm>
291291
To <dfn>get a value from a StylePropertyMap</dfn>, run these steps:
292292

293-
Issue(148): Write this
293+
1. If |property| does not start with two dashes (U+002D HYPHEN),
294+
let |property| be |property| [=ASCII lowercased=].
295+
296+
2. If |property| is not a [=supported property name=],
297+
[=throw=] a {{TypeError}} and exit this algorithm.
294298

299+
3. If {{StylePropertyMap}}’s [=property model=] contains an entry for |property|,
300+
return the first value found in that entry.
301+
302+
4. Else, return `null`.
295303
</div>
296304

297305
<div algorithm>

0 commit comments

Comments
 (0)