You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2190,28 +2192,101 @@ The <dfn method for=CSSStyleDeclaration>setProperty(<var>property</var>, <var>va
2190
2192
Note: <var>value</var> can not include "<code>!important</code>".
2191
2193
2192
2194
<li>If <var>component value list</var> is null, then return.
2195
+
<li>Let <var>updated</var> be false.
2193
2196
<li>If <var>property</var> is a shorthand property, then for each longhand property <var>longhand</var> that <var>property</var> maps to, in canonical
2194
-
order, <a lt="set a CSS declaration">set the CSS declaration</a><var>longhand</var> with the appropriate value(s) from <var>component value
2195
-
list</var>, with the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the
2196
-
<a for="CSSStyleDeclaration">declarations</a>.
2197
-
<li>Otherwise, <a lt="set a CSS declaration">set the CSS declaration</a><var>property</var> with value <var>component value list</var>, with
2198
-
the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the
2197
+
order, follow these substeps:
2198
+
<ol>
2199
+
<li>Let <var>longhand result</var> be the result of <a lt="set a CSS declaration">set the CSS declaration</a>
2200
+
<var>longhand</var> with the appropriate value(s) from <var>component value list</var>, with the <i>important</i>
2201
+
flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations
2202
+
being the <a for="CSSStyleDeclaration">declarations</a>.
2203
+
<li>If <var>longhand result</var> is true, let <var>updated</var> be true.
2204
+
</ol>
2205
+
<li>Otherwise, let <var>updated</var> be the result of <a lt="set a CSS declaration">set the CSS declaration</a>
2206
+
<var>property</var> with value <var>component value list</var>, with the <i>important</i> flag set if
2207
+
<var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the
2199
2208
<a for="CSSStyleDeclaration">declarations</a>.
2200
-
<li><a>Update style attribute for</a> the <a>CSS declaration block</a>.
2209
+
<li>If <var>updated</var> is true, <a>update style attribute for</a> the <a>CSS declaration block</a>.
2201
2210
</ol>
2202
2211
2203
2212
To <dfn export>set a CSS declaration</dfn><var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in
2204
-
a list of declarations <var>declarations</var>, follow these steps:
2213
+
a list of declarations <var>declarations</var>, the user agent must ensure the following constraints hold after its steps:
2205
2214
2206
-
<ol>
2207
-
<li>If <var>property</var> is a <a>case-sensitive</a> match for a <a for="CSS declaration">property
2208
-
name</a> of a <a>CSS declaration</a> in <var>declarations</var>, remove that <a>CSS declaration</a>.
2209
-
<li>Append a new <a>CSS declaration</a> with the <a for="CSS declaration">property name</a><var>property</var>
2210
-
to <var>declarations</var> and let <var>declaration</var> be that <a>CSS declaration</a>.
2211
-
<li>Set <var>declaration</var>'s <a for="CSS declaration">value</a> to <var>component value list</var>.
2212
-
<li>If the <i>important</i> flag is set, set <var>declaration</var>'s <a for="CSS declaration">important flag</a>.
0 commit comments