File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -377,18 +377,21 @@ probably in an appendix.
377377 2. If |property| is not a [=supported property name=] ,
378378 [=throw=] a {{TypeError}} and exit this algorithm.
379379
380- 3. Let |props| be |this|’s [=StylePropertyMap/map entries=] .
380+ 3. If |property| is a [=single-valued property=] and |values| has more than one [=list/entry=] ,
381+ [=throw=] a {{TypeError}} and exit this algorithm.
381382
382- 4. If |props|[|property|] [=map/exists=] ,
383+ 4. Let |props| be |this|’s [=StylePropertyMap/map entries=] .
384+
385+ 5. If |props|[|property|] [=map/exists=] ,
383386 [=map/remove=] it.
384387
385- 5 . Let |values to set| be an empty [=list=] .
388+ 6 . Let |values to set| be an empty [=list=] .
386389
387- 6 . For each |value| in |values|,
390+ 7 . For each |value| in |values|,
388391 [=normalize a style value=] for |property| and |value|,
389392 and append the result to |values to set|.
390393
391- 7 . Set |props|[|property|] to |values to set|.
394+ 8 . Set |props|[|property|] to |values to set|.
392395
393396 Note: The property is deleted then added back
394397 so that it gets put at the end of the [=ordered map=] ,
You can’t perform that action at this time.
0 commit comments