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
<p>The <dfnid="dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var>property</var>)</code></dfn> method must run these steps:</p>
2206
2206
<ol>
2207
+
<!-- XXX handle shorthands better -->
2207
2208
<li><p>If <var>property</var> is an <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII
2208
2209
case-insensitive</a> match for a property of a declaration in the
2209
2210
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, and that declaration's property
<p>The <dfnid="dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var>property</var>)</code></dfn> method must run these steps:
2223
2224
<ol>
2224
-
<li><p>If <var>property</var> is an <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII
2225
-
case-insensitive</a> match for a property of a declaration in the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> that has the
2226
-
<i>important</i> flag set, and that declaration's
2227
-
property is defined to be case-insensitive, return the string "<codetitle="">important</code>".</p>
2228
-
<li><p>If <var>property</var> is a
2229
-
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a property of a
2230
-
declaration in the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> that has the
2231
-
<i>important</i> flag set, and that declaration's property is defined to be case-sensitive, return
2232
-
the string "<codetitle="">important</code>".</p>
2225
+
<li><p>If <var>property</var> is a shorthand property, follow these substeps:
2226
+
<ol>
2227
+
<li><p>Let <var>list</var> be a new array.
2228
+
<li><p>For each longhand property <var>longhand</var> that <var>property</var> maps to, append the result of invoking
2229
+
<codetitle="dom-CSSStyleDeclaration-getPropertyPriority"><ahref="#dom-cssstyledeclaration-getpropertypriority">getPropertyPriority()</a></code> with <var>longhand</var> as argument to <var>list</var>.
2230
+
<li><p>If all items in <var>list</var> are the string "<codetitle="">important</code>", return the string "<codetitle="">important</code>" and terminate these
2231
+
steps.
2232
+
</ol>
2233
+
<li><p>Otherwise, follow these substeps:
2234
+
<ol>
2235
+
<li><p>If <var>property</var> is an <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII
2236
+
case-insensitive</a> match for a property of a declaration in the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> that has the
2237
+
<i>important</i> flag set, and that declaration's
2238
+
property is defined to be case-insensitive, return the string "<codetitle="">important</code>".</p>
2239
+
<li><p>If <var>property</var> is a
2240
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a property of a
2241
+
declaration in the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> that has the
2242
+
<i>important</i> flag set, and that declaration's property is defined to be case-sensitive, return
2243
+
the string "<codetitle="">important</code>".</p>
2244
+
</ol>
2233
2245
<li><p>Return the empty string.
2234
2246
</ol>
2235
2247
<divclass="example"><p>E.g. for <codetitle="">background-color:lime !IMPORTANT</code> the return
<var>priority</var>)</code></dfn> method must run these steps:</p>
2240
2252
<ol>
2253
+
<!-- XXX handle shorthands better -->
2241
2254
<li><p>If the <ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> is set, <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
2242
2255
an <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception and terminate these steps.</li>
2243
2256
<li><p>If <var>property</var> is not an <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a supported property that is defined to be
a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception and terminate these steps.</li>
2262
2275
<li><p>Let <var>value</var> be the return value of invoking <codetitle="dom-CSSStyleDeclaration-getPropertyValue"><ahref="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code>
2263
2276
with <var>property</var> as argument.
2264
-
<li><p>If <var>property</var> is an <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a property of a declaration in the
2265
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, and that property is defined to be a case-insensitive property, remove the
2266
-
declaration.</li>
2267
-
<li><p>If <var>property</var> is a <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a property of a declaration in the
2268
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, and that property is defined to be a case-sensitive property, remove the
2269
-
declaration.</li>
2277
+
<li><p>If <var>property</var> is a shorthand property, for each longhand property <var>longhand</var> that <var>property</var> maps to, invoke
2278
+
<codetitle="dom-CSSStyleDeclaration-removeProperty"><ahref="#dom-cssstyledeclaration-removeproperty">removeProperty()</a></code> with <var>longhand</var> as argument.
2279
+
<li><p>Otherwise, run these substeps:
2280
+
<ol>
2281
+
<li><p>If <var>property</var> is an <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a property of a declaration in the
2282
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, and that property is defined to be a case-insensitive property, remove the
2283
+
declaration.</li>
2284
+
<li><p>If <var>property</var> is a <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a property of a declaration in the
2285
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, and that property is defined to be a case-sensitive property, remove the
<p>The <dfntitle=dom-CSSStyleDeclaration-getPropertyPriority><code>getPropertyPriority(<var>property</var>)</code></dfn> method must run these steps:
2145
2146
<ol>
2146
-
<li><p>If <var>property</var> is an <spandata-anolis-spec=dom>ASCII
2147
-
case-insensitive</span> match for a property of a declaration in the <spantitle=concept-css-declaration-block-declarations>declarations</span> that has the
2148
-
<i>important</i> flag set, and that declaration's
2149
-
property is defined to be case-insensitive, return the string "<codetitle>important</code>".</p>
2150
-
<li><p>If <var>property</var> is a
2151
-
<spandata-anolis-spec=dom>case-sensitive</span> match for a property of a
2152
-
declaration in the <spantitle=concept-css-declaration-block-declarations>declarations</span> that has the
2153
-
<i>important</i> flag set, and that declaration's property is defined to be case-sensitive, return
2154
-
the string "<codetitle>important</code>".</p>
2147
+
<li><p>If <var>property</var> is a shorthand property, follow these substeps:
2148
+
<ol>
2149
+
<li><p>Let <var>list</var> be a new array.
2150
+
<li><p>For each longhand property <var>longhand</var> that <var>property</var> maps to, append the result of invoking
2151
+
<codetitle=dom-CSSStyleDeclaration-getPropertyPriority>getPropertyPriority()</code> with <var>longhand</var> as argument to <var>list</var>.
2152
+
<li><p>If all items in <var>list</var> are the string "<codetitle>important</code>", return the string "<codetitle>important</code>" and terminate these
2153
+
steps.
2154
+
</ol>
2155
+
<li><p>Otherwise, follow these substeps:
2156
+
<ol>
2157
+
<li><p>If <var>property</var> is an <spandata-anolis-spec=dom>ASCII
2158
+
case-insensitive</span> match for a property of a declaration in the <spantitle=concept-css-declaration-block-declarations>declarations</span> that has the
2159
+
<i>important</i> flag set, and that declaration's
2160
+
property is defined to be case-insensitive, return the string "<codetitle>important</code>".</p>
2161
+
<li><p>If <var>property</var> is a
2162
+
<spandata-anolis-spec=dom>case-sensitive</span> match for a property of a
2163
+
declaration in the <spantitle=concept-css-declaration-block-declarations>declarations</span> that has the
2164
+
<i>important</i> flag set, and that declaration's property is defined to be case-sensitive, return
2165
+
the string "<codetitle>important</code>".</p>
2166
+
</ol>
2155
2167
<li><p>Return the empty string.
2156
2168
</ol>
2157
2169
<divclass='example'><p>E.g. for <codetitle>background-color:lime !IMPORTANT</code> the return
<var>priority</var>)</code></dfn> method must run these steps:</p>
2162
2174
<ol>
2175
+
<!-- XXX handle shorthands better -->
2163
2176
<li><p>If the <spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> is set, <spandata-anolis-spec=domtitle=concept-throw>throw</span>
2164
2177
an <codedata-anolis-spec=dom>NoModificationAllowedError</code> exception and terminate these steps.</li>
2165
2178
<li><p>If <var>property</var> is not an <spandata-anolis-spec=dom>ASCII case-insensitive</span> match for a supported property that is defined to be
0 commit comments