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.
377
377
2. If |property| is not a [=supported property name=] ,
378
378
[=throw=] a {{TypeError}} and exit this algorithm.
379
379
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.
381
382
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=] ,
383
386
[=map/remove=] it.
384
387
385
- 5 . Let |values to set| be an empty [=list=] .
388
+ 6 . Let |values to set| be an empty [=list=] .
386
389
387
- 6 . For each |value| in |values|,
390
+ 7 . For each |value| in |values|,
388
391
[=normalize a style value=] for |property| and |value|,
389
392
and append the result to |values to set|.
390
393
391
- 7 . Set |props|[|property|] to |values to set|.
394
+ 8 . Set |props|[|property|] to |values to set|.
392
395
393
396
Note: The property is deleted then added back
394
397
so that it gets put at the end of the [=ordered map=] ,
You can’t perform that action at this time.
0 commit comments