Skip to content

Add description for StylePropertyMapReadOnly.set() #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,23 @@ The <dfn method for=StylePropertyMap>append(DOMString <var>property</var>,
<div algorithm>
To <dfn>set a value on a StylePropertyMap</dfn>, run these steps:

Issue(148): Write this
1. If |property| does not start with two dashes (U+002D HYPHEN),
let |property| be |property| [=ASCII lowercased=].

2. If |property| is not a [=supported property name=],
[=throw=] a {{TypeError}} and exit this algorithm.

3. If {{StylePropertyMap}}’s [=property model=] contains an entry for |property|,
let |entry| be that entry.
Otherwise, exit the algorithm.

4. Empty the list of |values| currently stored on the |entry|.

5. Let |values to set| be an empty list.

6. For each |value| in |values| if the [=algorithm that coerces value into an appropriate type for a given property=] does not throw an error, append the returned object to |values to set|.

7. Set |values to set| to be |entry|’s list.
</div>

The <dfn method for=StylePropertyMap>update(DOMString <var>property</var>,
Expand Down