Skip to content

Commit c4f6d96

Browse files
upsuperemilio
authored andcommitted
[cssom] Have property setters append new declaration rather than set in place.
This resolves #1898.
1 parent 23c7881 commit c4f6d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cssom-1/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,8 +2209,8 @@ a list of declarations <var>declarations</var>, follow these steps:
22092209

22102210
<ol>
22112211
<li>If <var>property</var> is a <a>case-sensitive</a> match for a <a for="CSS declaration">property
2212-
name</a> of a <a>CSS declaration</a> in <var>declarations</var>, let <var>declaration</var> be that <a>CSS declaration</a>.
2213-
<li>Otherwise, append a new <a>CSS declaration</a> with the <a for="CSS declaration">property name</a> <var>property</var>
2212+
name</a> of a <a>CSS declaration</a> in <var>declarations</var>, remove that <a>CSS declaration</a>.
2213+
<li>Append a new <a>CSS declaration</a> with the <a for="CSS declaration">property name</a> <var>property</var>
22142214
to <var>declarations</var> and let <var>declaration</var> be that <a>CSS declaration</a>.
22152215
<li>Set <var>declaration</var>'s <a for="CSS declaration">value</a> to <var>component value list</var>.
22162216
<li>If the <i>important</i> flag is set, set <var>declaration</var>'s <a for="CSS declaration">important flag</a>.

0 commit comments

Comments
 (0)