From a613a4574a2e2dfaa1ff7f17e7aa7e27ca160505 Mon Sep 17 00:00:00 2001 From: Naina Raisinghani Date: Fri, 4 Aug 2017 11:03:42 +0200 Subject: [PATCH] Add description for StylePropertyMapReadOnly.set() --- css-typed-om/Overview.bs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 429bd190..aa932746 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -282,7 +282,23 @@ The append(DOMString property,
To set a value on a StylePropertyMap, 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.
The update(DOMString property,