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
Copy file name to clipboardExpand all lines: cssom/Overview.html
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1952,7 +1952,9 @@ <h4 id="the-cssstylerule-interface"><span class="secno">6.4.3 </span>The <code t
1952
1952
<li><p>Otherwise, if the algorithm returns a null value, do nothing.</li>
1953
1953
</ol>
1954
1954
1955
-
<p>The <dfnid="dom-cssstylerule-style" title="dom-CSSStyleRule-style"><code>style</code></dfn> attribute must return a <code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> object for the style rule.</p>
1955
+
<p>The <dfnid="dom-cssstylerule-style" title="dom-CSSStyleRule-style"><code>style</code></dfn> attribute must return a <code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> object for the style rule, with the
1956
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> being the declared declarations in the rule, in the same order as they were
1957
+
specified, with shorthand properties expanded into their longhand properties, in canonical order.</p>
<p>To <dfnid="parse-a-css-declaration-block">parse a CSS declaration block</dfn> from a string <var>string</var>, invoke <aclass="external" data-anolis-spec="csssyntax" href="http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-declarations0">parse a list of declarations</a> with
2114
2112
<var>string</var> and return the value returned.</p>
<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>
2193
2191
a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception and terminate these steps.</li>
2194
2192
<li><p>Empty the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>.</li>
2195
-
<li><p><ahref="#parse-a-css-declaration-block" title="Parse a CSS declaration block">Parse</a> the given value and, if the return value is not the empty list, insert it into the
<li><p><ahref="#parse-a-css-declaration-block" title="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
2194
+
into the <ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, in the same order as they were specified, with shorthand properties
2195
+
expanded into their longhand properties, in canonical order.</li>
2197
2196
</ol>
2198
2197
2199
2198
<p>The <dfnid="dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length"><code>length</code></dfn> attribute must return the number of declarations in the
<p>The <dfnid="dom-elementcssinlinestyle-style" title="dom-ElementCSSInlineStyle-style"><code>style</code></dfn> attribute must return a <ahref="#css-declaration-block">CSS declaration block</a> with the
2701
2700
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> being set to the result of <ahref="#parse-a-css-declaration-block" title="Parse a CSS declaration block">parsing</a>
2702
-
the <codetitle="">style</code> content attribute. If the
2701
+
the <codetitle="">style</code> content attribute, in the same order as specified, with shorthand properties expanded to their longhand properties, in canonical
2702
+
order. If the
2703
2703
<codetitle="">style</code> content attribute is absent, the object represents an empty list of
2704
2704
declarations. Mutating the <code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> object must set the
2705
2705
<codetitle="">style</code> content attribute on the element to the
<p>Return a <ahref="#css-declaration-block">CSS declaration block</a> with the
2748
2748
<ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> set and the
2749
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all properties
2749
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all longhand properties
2750
2750
the user agent supports with the value being the <ahref="#resolved-value">resolved value</a>
2751
2751
computed for <var>obj</var> using the style rules associated
2752
2752
with <var>doc</var>.</p>
@@ -2781,28 +2781,28 @@ <h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code ti
2781
2781
2782
2782
<pclass="atrisk">The <dfnid="dom-getstyleutils-specifiedstyle" title="dom-GetStyleUtils-specifiedStyle"><code>specifiedStyle</code></dfn> attribute must return a <ahref="#css-declaration-block">CSS declaration block</a>
2783
2783
with the <ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> set and the
2784
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all properties
2784
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all longhand properties
2785
2785
the user agent supports with the value being the <ahref="#specified-value">specified value</a>
2786
2786
computed for the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated
2787
2787
with the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <ahref="#associated-document">associated document</a>.</p>
2788
2788
2789
2789
<pclass="atrisk">The <dfnid="dom-getstyleutils-defaultstyle" title="dom-GetStyleUtils-defaultStyle"><code>defaultStyle</code></dfn> attribute must return a <ahref="#css-declaration-block">CSS declaration block</a> with
2790
2790
the <ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> set and the
2791
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all properties the user agent supports with the value being the<ahref="#computed-value">computed
2792
-
value</a> computed for the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the user-agent-level style rules and user-level style rules associated with
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all longhand properties the user agent supports with the value being the
2792
+
<ahref="#computed-value">computed value</a> computed for the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the user-agent-level style rules and user-level style rules
2793
+
associated with the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <ahref="#associated-document">associated document</a>, ignoring transitions, animations, author-level style
2794
2794
rules, author-level presentational hints and override-level style rules.</p>
2795
2795
2796
2796
<pclass="atrisk">The <dfnid="dom-getstyleutils-computedstyle" title="dom-GetStyleUtils-computedStyle"><code>computedStyle</code></dfn> attribute must return a <ahref="#css-declaration-block">CSS declaration block</a> with
2797
2797
the <ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> set and the
2798
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all properties
2798
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all longhand properties
2799
2799
the user agent supports with the value being the <ahref="#computed-value">computed value</a>
2800
2800
computed for the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated
2801
2801
with the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <ahref="#associated-document">associated document</a>.</p>
2802
2802
2803
2803
<pclass="atrisk">The <dfnid="dom-getstyleutils-usedstyle" title="dom-GetStyleUtils-usedStyle"><code>usedStyle</code></dfn> attribute must return a <ahref="#css-declaration-block">CSS declaration block</a> with the
2804
2804
<ahref="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> set and the
2805
-
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all properties
2805
+
<ahref="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all longhand properties
2806
2806
the user agent supports with the value being the <ahref="#used-value">used value</a>
2807
2807
computed for the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated
2808
2808
with the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <ahref="#associated-document">associated document</a>.</p>
<li><p>Otherwise, if the algorithm returns a null value, do nothing.</p></li>
1875
1875
</ol>
1876
1876
1877
-
<p>The <dfntitle=dom-CSSStyleRule-style><code>style</code></dfn> attribute must return a <code>CSSStyleDeclaration</code> object for the style rule.</p>
1877
+
<p>The <dfntitle=dom-CSSStyleRule-style><code>style</code></dfn> attribute must return a <code>CSSStyleDeclaration</code> object for the style rule, with the
1878
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> being the declared declarations in the rule, in the same order as they were
1879
+
specified, with shorthand properties expanded into their longhand properties, in canonical order.</p>
<p>To <dfn>parse a CSS declaration block</dfn> from a string <var>string</var>, invoke <spandata-anolis-spec=csssyntax>parse a list of declarations</span> with
2036
2034
<var>string</var> and return the value returned.</p>
<li><p>If the <spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> is set, <spandata-anolis-spec=domtitle=concept-throw>throw</span>
2115
2113
a <codedata-anolis-spec=dom>NoModificationAllowedError</code> exception and terminate these steps.</li>
2116
2114
<li><p>Empty the <spantitle=concept-css-declaration-block-declarations>declarations</span>.</li>
2117
-
<li><p><spantitle='Parse a CSS declaration block'>Parse</span> the given value and, if the return value is not the empty list, insert it into the
<li><p><spantitle='Parse a CSS declaration block'>Parse</span> the given value and, if the return value is not the empty list, insert the items in the list
2116
+
into the <spantitle=concept-css-declaration-block-declarations>declarations</span>, in the same order as they were specified, with shorthand properties
2117
+
expanded into their longhand properties, in canonical order.</p></li>
2119
2118
</ol>
2120
2119
2121
2120
<p>The <dfntitle=dom-CSSStyleDeclaration-length><code>length</code></dfn> attribute must return the number of declarations in the
<p>The <dfntitle=dom-ElementCSSInlineStyle-style><code>style</code></dfn> attribute must return a <span>CSS declaration block</span> with the
2623
2622
<spantitle=concept-css-declaration-block-declarations>declarations</span> being set to the result of <spantitle='Parse a CSS declaration block'>parsing</span>
2624
-
the <codetitle>style</code> content attribute. If the
2623
+
the <codetitle>style</code> content attribute, in the same order as specified, with shorthand properties expanded to their longhand properties, in canonical
2624
+
order. If the
2625
2625
<codetitle>style</code> content attribute is absent, the object represents an empty list of
2626
2626
declarations. Mutating the <code>CSSStyleDeclaration</code> object must set the
2627
2627
<codetitle>style</code> content attribute on the element to the
@@ -2668,7 +2668,7 @@ <h3>Extensions to the <code title>Window</code> Interface</h3>
2668
2668
<li>
2669
2669
<p>Return a <span>CSS declaration block</span> with the
2670
2670
<spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> set and the
2671
-
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all properties
2671
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all longhand properties
2672
2672
the user agent supports with the value being the <span>resolved value</span>
2673
2673
computed for <var>obj</var> using the style rules associated
<pclass=atrisk>The <dfntitle=dom-GetStyleUtils-specifiedStyle><code>specifiedStyle</code></dfn> attribute must return a <span>CSS declaration block</span>
2705
2705
with the <spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> set and the
2706
-
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all properties
2706
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all longhand properties
2707
2707
the user agent supports with the value being the <span>specified value</span>
2708
2708
computed for the <spandata-anolis-spec=dom>context object</span> using the style rules associated
2709
2709
with the <spandata-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
2710
2710
2711
2711
<pclass=atrisk>The <dfntitle=dom-GetStyleUtils-defaultStyle><code>defaultStyle</code></dfn> attribute must return a <span>CSS declaration block</span> with
2712
2712
the <spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> set and the
2713
-
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all properties the user agent supports with the value being the<span>computed
2714
-
value</span> computed for the <spandata-anolis-spec=dom>context object</span> using the user-agent-level style rules and user-level style rules associated with
2715
-
the <spandata-anolis-spec=dom>context object</span>'s <span>associated document</span>, ignoring transitions, animations, author-level style
2713
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all longhand properties the user agent supports with the value being the
2714
+
<span>computed value</span> computed for the <spandata-anolis-spec=dom>context object</span> using the user-agent-level style rules and user-level style rules
2715
+
associated with the <spandata-anolis-spec=dom>context object</span>'s <span>associated document</span>, ignoring transitions, animations, author-level style
2716
2716
rules, author-level presentational hints and override-level style rules.</p>
2717
2717
2718
2718
<pclass=atrisk>The <dfntitle=dom-GetStyleUtils-computedStyle><code>computedStyle</code></dfn> attribute must return a <span>CSS declaration block</span> with
2719
2719
the <spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> set and the
2720
-
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all properties
2720
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all longhand properties
2721
2721
the user agent supports with the value being the <span>computed value</span>
2722
2722
computed for the <spandata-anolis-spec=dom>context object</span> using the style rules associated
2723
2723
with the <spandata-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
2724
2724
2725
2725
<pclass=atrisk>The <dfntitle=dom-GetStyleUtils-usedStyle><code>usedStyle</code></dfn> attribute must return a <span>CSS declaration block</span> with the
2726
2726
<spantitle=concept-css-declaration-block-readonly-flag>readonly flag</span> set and the
2727
-
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all properties
2727
+
<spantitle=concept-css-declaration-block-declarations>declarations</span> set to all longhand properties
2728
2728
the user agent supports with the value being the <span>used value</span>
2729
2729
computed for the <spandata-anolis-spec=dom>context object</span> using the style rules associated
2730
2730
with the <spandata-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
0 commit comments