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
The <dfn id=concept-shorthands-preferred-order>preferred order</dfn> of a list of shorthand properties <var>shorthands</var> is as follows:
2038
2076
2039
2077
<ol>
@@ -2079,6 +2117,7 @@ Setting the {{CSSStyleDeclaration/cssText}} attribute must run these steps:
2079
2117
<li>Empty the <a for="CSSStyleDeclaration">declarations</a>.
2080
2118
<li><a lt="Parse a CSS declaration block">Parse</a> the given value and, if the return value is not the empty list, insert the items in the list
2081
2119
into the <a for="CSSStyleDeclaration">declarations</a>, in <a>specified order</a>.
2120
+
<li><a>Update style attribute for</a> the <a>CSS declaration block</a>.
2082
2121
</ol>
2083
2122
2084
2123
The <dfn attribute for=CSSStyleDeclaration>length</dfn> attribute must return the number of <a lt="CSS declaration">CSS
@@ -2164,6 +2203,7 @@ The <dfn method for=CSSStyleDeclaration>setProperty(<var>property</var>, <var>va
2164
2203
<li>Otherwise, <a lt="set a CSS declaration">set the CSS declaration</a><var>property</var> with value <var>component value list</var>, with
2165
2204
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
2166
2205
<a for="CSSStyleDeclaration">declarations</a>.
2206
+
<li><a>Update style attribute for</a> the <a>CSS declaration block</a>.
2167
2207
</ol>
2168
2208
2169
2209
To <dfn>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
@@ -2202,6 +2242,7 @@ steps:
2202
2242
value list</var>, and with the list of declarations being the <a for="CSSStyleDeclaration">declarations</a>.
2203
2243
<li>Otherwise, <a lt="set a CSS declaration value">set the CSS declaration value</a><var>property</var> to the value <var>component value
2204
2244
list</var>, and with the list of declarations being the <a for="CSSStyleDeclaration">declarations</a>.
2245
+
<li><a>Update style attribute for</a> the <a>CSS declaration block</a>.
2205
2246
</ol>
2206
2247
2207
2248
To <dfn>set a CSS declaration value</dfn> to a value <var>component value list</var> in a list of declarations <var>declarations</var>, follow these steps:
@@ -2234,6 +2275,7 @@ these steps:
2234
2275
<li>Otherwise, <a lt="set a CSS declaration priority">set the CSS declaration priority</a><var>property</var> with the <i>important</i> flag set
2235
2276
if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the
2236
2277
<a for="CSSStyleDeclaration">declarations</a>.
2278
+
<li><a>Update style attribute for</a> the <a>CSS declaration block</a>.
2237
2279
</ol>
2238
2280
2239
2281
To <dfn>set a CSS declaration priority</dfn><var>property</var> optionally with an <i>important</i> flag set, in a list of declarations
@@ -2255,11 +2297,17 @@ The <dfn method for=CSSStyleDeclaration>removeProperty(<var>property</var>)</dfn
2255
2297
let <var>property</var> be <var>property</var><a lt="ASCII lowercase">converted to ASCII lowercase</a>.
2256
2298
<li>Let <var>value</var> be the return value of invoking {{CSSStyleDeclaration/getPropertyValue()}}
2257
2299
with <var>property</var> as argument.
2258
-
<li>If <var>property</var> is a shorthand property, for each longhand property <var>longhand</var> that <var>property</var> maps to, invoke
2259
-
{{CSSStyleDeclaration/removeProperty()}} with <var>longhand</var> as argument.
2300
+
<li>Let <var>removed</var> be false.
2301
+
<li>If <var>property</var> is a shorthand property, for each longhand property <var>longhand</var> that <var>property</var> maps to:
2302
+
<ol>
2303
+
<li>If <var>longhand</var> is not a <a for="CSS declaration">property name</a> of a <a>CSS declaration</a>
2304
+
in the <a for="CSSStyleDeclaration">declarations</a>, <a for=iteration>continue</a>.
2305
+
<li>Remove that <a>CSS declaration</a> and let <var>removed</var> be true.
2306
+
</ol>
2260
2307
<li>Otherwise, if <var>property</var> is a <a>case-sensitive</a> match for a
2261
2308
<a for="CSS declaration">property name</a> of a <a>CSS declaration</a> in the
2262
-
<a for="CSSStyleDeclaration">declarations</a>, remove that <a>CSS declaration</a>.
2309
+
<a for="CSSStyleDeclaration">declarations</a>, remove that <a>CSS declaration</a> and let <var>removed</var> be true.
2310
+
<li>If <var>removed</var> is true, <a>Update style attribute for</a> the <a>CSS declaration block</a>.
0 commit comments