|
16 | 16 | <h1>CSS Object Model (CSSOM)</h1> |
17 | 17 |
|
18 | 18 |
|
19 | | - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 9 August 2013</h2> |
| 19 | + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 12 August 2013</h2> |
20 | 20 |
|
21 | 21 | <dl> |
22 | 22 |
|
@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2> |
90 | 90 | can be found in the |
91 | 91 | <a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em> |
92 | 92 |
|
93 | | -<p class="dontpublish">This is the 9 August 2013 Editor's Draft of CSSOM. Please send comments to |
| 93 | +<p class="dontpublish">This is the 12 August 2013 Editor's Draft of CSSOM. Please send comments to |
94 | 94 | <a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a> |
95 | 95 | (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>) |
96 | 96 | with <samp>[cssom]</samp> at the start of the subject line. |
@@ -1959,11 +1959,12 @@ <h4 id="the-cssstylerule-interface"><span class="secno">6.4.3 </span>The <code t |
1959 | 1959 | </ol> |
1960 | 1960 |
|
1961 | 1961 | <p>The <dfn id="dom-cssstylerule-style" title="dom-CSSStyleRule-style"><code>style</code></dfn> attribute must return a <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> object for the style rule, with the |
1962 | | -<a href="#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 |
1963 | | -specified, with shorthand properties expanded into their longhand properties, in canonical order. If a property is specified more than once, it must be |
1964 | | -represented as one item in the <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> at the position of the last declaration for that |
1965 | | -property.</p> |
| 1962 | +<a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> being the declared declarations in the rule, in |
| 1963 | +<a href="#concept-declarations-specified-order" title="concept-declarations-specified-order">specified order</a>.</p> |
1966 | 1964 |
|
| 1965 | +<p>The <dfn id="concept-declarations-specified-order" title="concept-declarations-specified-order">specified order</dfn> for declarations is the same as specified, but with shorthand properties |
| 1966 | +expanded into their longhand properties, in canonical order. If a property is specified more than once (after shorthand expansion), only the |
| 1967 | +one with greatest cascading order must be represented, at the same relative position as it was specified. <a href="#refsCSSCASCADE">[CSSCASCADE]</a> |
1967 | 1968 |
|
1968 | 1969 | <h4 id="the-csscharsetrule-interface"><span class="secno">6.4.4 </span>The <code title="">CSSCharsetRule</code> Interface</h4> |
1969 | 1970 |
|
@@ -2231,9 +2232,8 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The |
2231 | 2232 | a <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception and terminate these steps.</li> |
2232 | 2233 | <li><p>Empty the <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>.</li> |
2233 | 2234 | <li><p><a href="#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 |
2234 | | - into the <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, in the same order as they were specified, with shorthand properties |
2235 | | - expanded into their longhand properties, in canonical order. If a property is specified more than once, it must be represented as one item in the |
2236 | | - <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> at the position of the last declaration for that property.</li> |
| 2235 | + into the <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>, in <a href="#concept-declarations-specified-order" title="concept-declarations-specified-order">specified |
| 2236 | + order</a>.</li> |
2237 | 2237 | </ol> |
2238 | 2238 |
|
2239 | 2239 | <p>The <dfn id="dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length"><code>length</code></dfn> attribute must return the number of declarations in the |
@@ -2731,9 +2731,7 @@ <h3 id="the-elementcssinlinestyle-interface"><span class="secno">7.1 </span>The |
2731 | 2731 |
|
2732 | 2732 | <p>The <dfn id="dom-elementcssinlinestyle-style" title="dom-ElementCSSInlineStyle-style"><code>style</code></dfn> attribute must return a <a href="#css-declaration-block">CSS declaration block</a> with the |
2733 | 2733 | <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> being set to the result of <a href="#parse-a-css-declaration-block" title="Parse a CSS declaration block">parsing</a> |
2734 | | -the <code title="">style</code> content attribute, in the same order as specified, with shorthand properties expanded to their longhand properties, in canonical |
2735 | | -order. If a property is specified more than once, it must be represented as one item in the |
2736 | | -<a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> at the position of the last declaration for that property. If the |
| 2734 | +the <code title="">style</code> content attribute, in <a href="#concept-declarations-specified-order" title="concept-declarations-specified-order">specified order</a>. If the |
2737 | 2735 | <code title="">style</code> content attribute is absent, the object represents an empty list of |
2738 | 2736 | declarations. Mutating the <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> object must set the |
2739 | 2737 | <code title="">style</code> content attribute on the element to the |
@@ -2988,6 +2986,9 @@ <h2 class="no-num" id="references">References</h2> |
2988 | 2986 | <div id="anolis-references"><dl><dt id="refsCSS">[CSS] |
2989 | 2987 | <dd><cite><a href="http://www.w3.org/TR/CSS2/">CSS</a></cite>, Bert Bos, Tantek Çelik, Ian Hickson et al.. W3C. |
2990 | 2988 |
|
| 2989 | +<dt id="refsCSSCASCADE">[CSSCASCADE] |
| 2990 | +<dd><cite><a href="http://dev.w3.org/csswg/css-cascade/">CSS Cascading and Inheritance</a></cite>, Håkon Wium Lie, fantasai and Tab Atkins Jr.. |
| 2991 | + |
2991 | 2992 | <dt id="refsCSSNAMESPACES">[CSSNAMESPACES] |
2992 | 2993 | <dd><cite><a href="http://dev.w3.org/csswg/css-namespaces/">CSS Namespaces Module</a></cite>, Elika J. Etemad and Anne van Kesteren. W3C. |
2993 | 2994 |
|
@@ -3065,6 +3066,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2> |
3065 | 3066 | Øyvind Stenhaug, |
3066 | 3067 | Philip Taylor, |
3067 | 3068 | Robert O'Callahan, |
| 3069 | +Simon Sapin, |
3068 | 3070 | Sjoerd Visscher, |
3069 | 3071 | <!--Simon Pieters,--> |
3070 | 3072 | Sylvain Galineau, |
|
0 commit comments