Skip to content

Commit 20eef68

Browse files
author
Simon Pieters
committed
[cssom] Require alphabetical order of the declarations for getComputedStyle et al. http://lists.w3.org/Archives/Public/www-style/2013Aug/0592.html
1 parent ed168dd commit 20eef68

2 files changed

Lines changed: 34 additions & 32 deletions

File tree

cssom/Overview.html

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<h1>CSS Object Model (CSSOM)</h1>
1717

1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 27 August 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 28 August 2013</h2>
2020

2121
<dl>
2222

@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
9090
can be found in the
9191
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
9292

93-
<p class="dontpublish">This is the 27 August 2013 Editor's Draft of CSSOM. Please send comments to
93+
<p class="dontpublish">This is the 28 August 2013 Editor's Draft of CSSOM. Please send comments to
9494
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
9595
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
9696
with <samp>[cssom]</samp> at the start of the subject line.
@@ -2870,8 +2870,8 @@ <h3 id="extensions-to-the-window-interface"><span class="secno">7.2 </span>Exten
28702870
<dt><a href="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a>
28712871
<dd><p>Set.
28722872
<dt><a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>
2873-
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a> with the value being the <a href="#resolved-value">resolved
2874-
value</a> computed for <var>obj</var> using the style rules associated with <var>doc</var>.</p>
2873+
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a>, in lexicographical order, with the value being
2874+
the <a href="#resolved-value">resolved value</a> computed for <var>obj</var> using the style rules associated with <var>doc</var>.</p>
28752875
<p class="note">This means that even if <var>obj</var> is in a different document (e.g. one fetched via <code title="">XMLHttpRequest</code>) it will still use
28762876
the style rules associated with the document that is associated with the global object on which
28772877
<code title="dom-Window-getComputedStyle"><a href="#dom-window-getcomputedstyle">getComputedStyle()</a></code> was invoked to compute the <a href="#css-declaration-block">CSS declaration block</a>.</p>
@@ -2909,9 +2909,10 @@ <h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code ti
29092909
<dt><a href="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a>
29102910
<dd><p>Set.
29112911
<dt><a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>
2912-
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a> that have a <a href="#cascaded-value">cascaded value</a> for the
2913-
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>, with the value being the <a href="#cascaded-value">cascaded value</a> computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context
2914-
object</a> using the style rules associated with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated document</a>.</p>
2912+
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a>, in lexicographical order, that have a
2913+
<a href="#cascaded-value">cascaded value</a> for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>, with the value being the <a href="#cascaded-value">cascaded value</a> computed for the
2914+
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated
2915+
document</a>.</p>
29152916
<dt><a href="#contept-css-declaration-block-parent-css-rule" title="contept-css-declaration-block-parent-css-rule">parent CSS rule</a>
29162917
<dd><p>Null.
29172918
<dt><a href="#concept-css-declaration-block-owner-node" title="concept-css-declaration-block-owner-node">owner node</a>
@@ -2925,10 +2926,10 @@ <h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code ti
29252926
<dt><span title=concept-css-declaration-block-readonly-flag>readonly flag</span>
29262927
<dd><p>Set.
29272928
<dt><span title=concept-css-declaration-block-declarations>declarations</span>
2928-
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>computed
2929-
value</span> computed for the <span data-anolis-spec=dom>context object</span> using the user-agent-level style rules and user-level style rules associated
2930-
with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>, ignoring transitions, animations, author-level style rules,
2931-
author-level presentational hints and override-level style rules.</p>
2929+
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span>, in lexicographical order, with the value being
2930+
the <span>computed value</span> computed for the <span data-anolis-spec=dom>context object</span> using the user-agent-level style rules and user-level style
2931+
rules associated with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>, ignoring transitions, animations, author-level
2932+
style rules, author-level presentational hints and override-level style rules.</p>
29322933
<dt><span title=contept-css-declaration-block-parent-css-rule>parent CSS rule</span>
29332934
<dd><p>Null.
29342935
<dt><span title=concept-css-declaration-block-owner-node>owner node</span>
@@ -2942,9 +2943,9 @@ <h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code ti
29422943
<dt><a href="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a>
29432944
<dd><p>Set.
29442945
<dt><a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>
2945-
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a> with the value being the <a href="#computed-value">computed
2946-
value</a> computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context
2947-
object</a>'s <a href="#associated-document">associated document</a>.</p>
2946+
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a>, in lexicographical order, with the value being
2947+
the <a href="#computed-value">computed value</a> computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated with the
2948+
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated document</a>.</p>
29482949
<dt><a href="#contept-css-declaration-block-parent-css-rule" title="contept-css-declaration-block-parent-css-rule">parent CSS rule</a>
29492950
<dd><p>Null.
29502951
<dt><a href="#concept-css-declaration-block-owner-node" title="concept-css-declaration-block-owner-node">owner node</a>
@@ -2957,9 +2958,9 @@ <h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code ti
29572958
<dt><a href="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a>
29582959
<dd><p>Set.
29592960
<dt><a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>
2960-
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a> with the value being the <a href="#used-value">used value</a>
2961-
computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s
2962-
<a href="#associated-document">associated document</a>.</p>
2961+
<dd><p>All longhand properties that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a>, in lexicographical order, with the value being
2962+
the <a href="#used-value">used value</a> computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated with the
2963+
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated document</a>.</p>
29632964
<dt><a href="#contept-css-declaration-block-parent-css-rule" title="contept-css-declaration-block-parent-css-rule">parent CSS rule</a>
29642965
<dd><p>Null.
29652966
<dt><a href="#concept-css-declaration-block-owner-node" title="concept-css-declaration-block-owner-node">owner node</a>

cssom/Overview.src.html

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2791,8 +2791,8 @@ <h3>Extensions to the <code title>Window</code> Interface</h3>
27912791
<dt><span title=concept-css-declaration-block-readonly-flag>readonly flag</span>
27922792
<dd><p>Set.
27932793
<dt><span title=concept-css-declaration-block-declarations>declarations</span>
2794-
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>resolved
2795-
value</span> computed for <var>obj</var> using the style rules associated with <var>doc</var>.</p>
2794+
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span>, in lexicographical order, with the value being
2795+
the <span>resolved value</span> computed for <var>obj</var> using the style rules associated with <var>doc</var>.</p>
27962796
<p class=note>This means that even if <var>obj</var> is in a different document (e.g. one fetched via <code title>XMLHttpRequest</code>) it will still use
27972797
the style rules associated with the document that is associated with the global object on which
27982798
<code title=dom-Window-getComputedStyle>getComputedStyle()</code> was invoked to compute the <span>CSS declaration block</span>.</p>
@@ -2830,9 +2830,10 @@ <h3>The <code title>GetStyleUtils</code> Interface</h3>
28302830
<dt><span title=concept-css-declaration-block-readonly-flag>readonly flag</span>
28312831
<dd><p>Set.
28322832
<dt><span title=concept-css-declaration-block-declarations>declarations</span>
2833-
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span> that have a <span>cascaded value</span> for the
2834-
<span data-anolis-spec=dom>context object</span>, with the value being the <span>cascaded value</span> computed for the <span data-anolis-spec=dom>context
2835-
object</span> using the style rules associated with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
2833+
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span>, in lexicographical order, that have a
2834+
<span>cascaded value</span> for the <span data-anolis-spec=dom>context object</span>, with the value being the <span>cascaded value</span> computed for the
2835+
<span data-anolis-spec=dom>context object</span> using the style rules associated with the <span data-anolis-spec=dom>context object</span>'s <span>associated
2836+
document</span>.</p>
28362837
<dt><span title=contept-css-declaration-block-parent-css-rule>parent CSS rule</span>
28372838
<dd><p>Null.
28382839
<dt><span title=concept-css-declaration-block-owner-node>owner node</span>
@@ -2846,10 +2847,10 @@ <h3>The <code title>GetStyleUtils</code> Interface</h3>
28462847
<dt><span title=concept-css-declaration-block-readonly-flag>readonly flag</span>
28472848
<dd><p>Set.
28482849
<dt><span title=concept-css-declaration-block-declarations>declarations</span>
2849-
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>computed
2850-
value</span> computed for the <span data-anolis-spec=dom>context object</span> using the user-agent-level style rules and user-level style rules associated
2851-
with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>, ignoring transitions, animations, author-level style rules,
2852-
author-level presentational hints and override-level style rules.</p>
2850+
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span>, in lexicographical order, with the value being
2851+
the <span>computed value</span> computed for the <span data-anolis-spec=dom>context object</span> using the user-agent-level style rules and user-level style
2852+
rules associated with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>, ignoring transitions, animations, author-level
2853+
style rules, author-level presentational hints and override-level style rules.</p>
28532854
<dt><span title=contept-css-declaration-block-parent-css-rule>parent CSS rule</span>
28542855
<dd><p>Null.
28552856
<dt><span title=concept-css-declaration-block-owner-node>owner node</span>
@@ -2863,9 +2864,9 @@ <h3>The <code title>GetStyleUtils</code> Interface</h3>
28632864
<dt><span title=concept-css-declaration-block-readonly-flag>readonly flag</span>
28642865
<dd><p>Set.
28652866
<dt><span title=concept-css-declaration-block-declarations>declarations</span>
2866-
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>computed
2867-
value</span> computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated with the <span data-anolis-spec=dom>context
2868-
object</span>'s <span>associated document</span>.</p>
2867+
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span>, in lexicographical order, with the value being
2868+
the <span>computed value</span> computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated with the
2869+
<span data-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
28692870
<dt><span title=contept-css-declaration-block-parent-css-rule>parent CSS rule</span>
28702871
<dd><p>Null.
28712872
<dt><span title=concept-css-declaration-block-owner-node>owner node</span>
@@ -2878,9 +2879,9 @@ <h3>The <code title>GetStyleUtils</code> Interface</h3>
28782879
<dt><span title=concept-css-declaration-block-readonly-flag>readonly flag</span>
28792880
<dd><p>Set.
28802881
<dt><span title=concept-css-declaration-block-declarations>declarations</span>
2881-
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>used value</span>
2882-
computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated with the <span data-anolis-spec=dom>context object</span>'s
2883-
<span>associated document</span>.</p>
2882+
<dd><p>All longhand properties that are <span title="supported CSS property">supported CSS properties</span>, in lexicographical order, with the value being
2883+
the <span>used value</span> computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated with the
2884+
<span data-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
28842885
<dt><span title=contept-css-declaration-block-parent-css-rule>parent CSS rule</span>
28852886
<dd><p>Null.
28862887
<dt><span title=concept-css-declaration-block-owner-node>owner node</span>

0 commit comments

Comments
 (0)