|
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 21 August 2013</h2> |
| 19 | + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 23 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 21 August 2013 Editor's Draft of CSSOM. Please send comments to |
| 93 | +<p class="dontpublish">This is the 23 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. |
@@ -2245,7 +2245,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The |
2245 | 2245 | void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, [TreatNullAs=EmptyString] DOMString value, <!-- |
2246 | 2246 | -->[TreatNullAs=EmptyString] optional DOMString priority); |
2247 | 2247 | DOMString <a href="#dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty">removeProperty</a>(DOMString property); |
2248 | | - readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length">parentRule</a>; |
| 2248 | + readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule">parentRule</a>; |
2249 | 2249 | attribute DOMString <a href="#dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</a>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] --> |
2250 | 2250 | };</pre> |
2251 | 2251 |
|
@@ -2371,8 +2371,8 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The |
2371 | 2371 | <li><p>Return <var>value</var>. |
2372 | 2372 | </ol> |
2373 | 2373 |
|
2374 | | -<p>The <dfn id="dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn> attribute must return the <code><a href="#cssrule">CSSrule</a></code> object the |
2375 | | -<code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> is object is associated with or null if it is not associated with a <code><a href="#cssrule">CSSrule</a></code> object.</p> |
| 2374 | +<p>The <dfn id="dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn> attribute must return the <code><a href="#cssrule">CSSRule</a></code> object the |
| 2375 | +<code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> is object is associated with or null if it is not associated with a <code><a href="#cssrule">CSSRule</a></code> object.</p> |
2376 | 2376 |
|
2377 | 2377 | <p>The <dfn id="dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat"><code>cssFloat</code></dfn> |
2378 | 2378 | attribute, on getting, must return the result of invoking |
@@ -2617,18 +2617,18 @@ <h4 id="serializing-css-values"><span class="secno">6.6.2 </span>Serializing CSS |
2617 | 2617 |
|
2618 | 2618 | <dt><counter></dt> |
2619 | 2619 | <dd> |
2620 | | - <p>The concatenation of:</p> |
| 2620 | + <p>The return value of the following algorithm:</p> |
2621 | 2621 | <ol> |
2622 | | - <li><p>If <counter> has three CSS component values the string |
2623 | | - "<code title="">counters(</code>".</li> |
2624 | | - <li><p>If <counter> has two CSS component values the string |
2625 | | - "<code title="">counter(</code>".</li> |
2626 | | - <li><p>The result of |
2627 | | - <a href="#serialize-a-comma-separated-list" title="serialize a comma-separated list">serializing</a> the |
2628 | | - <a href="#serialize-a-css-component-value" title="serialize a CSS component value">serialized</a> |
2629 | | - CSS component values belonging to <counter> as list while omitting |
2630 | | - the last CSS component value if it is 'decimal'.</li> |
2631 | | - <li><p>"<code title="">)</code>" (U+0029).</li> |
| 2622 | + <li><p>Let <var>s</var> be the empty string. |
| 2623 | + <li><p>If <counter> has three CSS component values append the string |
| 2624 | + "<code title="">counters(</code>" to <var>s</var>.</li> |
| 2625 | + <li><p>If <counter> has two CSS component values append the string |
| 2626 | + "<code title="">counter(</code>" to <var>s</var>.</li> |
| 2627 | + <li><p>Let <var>list</var> be a list of CSS component values belonging to <counter>, omitting the last CSS component value if it is 'decimal'. |
| 2628 | + <li><p>Let each item in <var>list</var> be the result of invoking <a href="#serialize-a-css-component-value">serialize a CSS component value</a> on that item. |
| 2629 | + <li><p>Append the result of invoking <a href="#serialize-a-comma-separated-list">serialize a comma-separated list</a> on <var>list</var> to <var>s</var>. |
| 2630 | + <li><p>Append "<code title="">)</code>" (U+0029) to <var>s</var>.</li> |
| 2631 | + <li><p>Return <var>s</var>. |
2632 | 2632 | </ol> |
2633 | 2633 | </dd> |
2634 | 2634 |
|
@@ -2677,11 +2677,17 @@ <h4 id="serializing-css-values"><span class="secno">6.6.2 </span>Serializing CSS |
2677 | 2677 | <number> followed by the literal string "<code title="">dpcm</code>".</dd> |
2678 | 2678 |
|
2679 | 2679 | <dt><shape></dt> |
2680 | | - <dd><p>The string "<code title="">rect(</code>", followed by the result |
2681 | | - of <a href="#serialize-a-comma-separated-list" title="serialize a comma-separated list">serializing</a> the |
2682 | | - <a href="#serialize-a-css-component-value" title="serialize a CSS component value">serialized</a> |
2683 | | - CSS component values belonging to <shape> as list, followed by |
2684 | | - "<code title="">)</code>" (U+0029).</dd> |
| 2680 | + <dd> |
| 2681 | + <p>The return value of the following algorithm: |
| 2682 | + <ol> |
| 2683 | + <li><p>Let <var>s</var> be the string "<code title="">rect(</code>". |
| 2684 | + <li><p>Let <var>list</var> be a list of the CSS component values belonging to <shape>. |
| 2685 | + <li><p>Let each item in <var>list</var> be the result of invoking <a href="#serialize-a-css-component-value">serialize a CSS component value</a> of that item. |
| 2686 | + <li><p>Append the result of invoking <a href="#serialize-a-comma-separated-list">serialize a comma-separated list</a> on <var>list</var> to <var>s</var>. |
| 2687 | + <li><p>Append "<code title="">)</code>" (U+0029) to <var>s</var>. |
| 2688 | + <li><p>Return <var>s</var>. |
| 2689 | + </ol> |
| 2690 | + </dd> |
2685 | 2691 |
|
2686 | 2692 | <dt><string></dt> |
2687 | 2693 | <dt><family-name></dt> |
|
0 commit comments