Thu, 02 Oct 2014 09:52:54 +0200
[cssom] Make setProperty match Firefox. Fixes http://www.w3.org/mid/CADhPm3tLVyDCbe3erXMxnj6EZB4QQV+2VRN+cMfBpE20nK4kfA@mail.gmail.com
cssom/Overview.html | file | annotate | diff | comparison | revisions | |
cssom/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/cssom/Overview.html Wed Oct 01 18:36:29 2014 +0200 1.2 +++ b/cssom/Overview.html Thu Oct 02 09:52:54 2014 +0200 1.3 @@ -16,7 +16,7 @@ 1.4 <h1>CSS Object Model (CSSOM)</h1> 1.5 1.6 1.7 - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 16 September 2014</h2> 1.8 + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 2 October 2014</h2> 1.9 1.10 <dl> 1.11 1.12 @@ -90,7 +90,7 @@ 1.13 can be found in the 1.14 <a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em> 1.15 1.16 -<p class="dontpublish">This is the 16 September 2014 Editor's Draft of CSSOM. Please send comments to 1.17 +<p class="dontpublish">This is the 2 October 2014 Editor's Draft of CSSOM. Please send comments to 1.18 <a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a> 1.19 (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>) 1.20 with <samp>[cssom]</samp> at the start of the subject line. 1.21 @@ -2442,15 +2442,15 @@ 1.22 </li> 1.23 <li><p>If <var>component value list</var> is null terminate these steps. 1.24 <li><p>If <var>property</var> is a shorthand property, then for each longhand property <var>longhand</var> that <var>property</var> maps to, in canonical 1.25 - order, <a href="#append-a-css-declaration" title="append a CSS declaration">append the CSS declaration</a> <var>longhand</var> with the appropriate value(s) from <var>component value 1.26 + order, <a href="#set-a-css-declaration" title="set a CSS declaration">set the CSS declaration</a> <var>longhand</var> with the appropriate value(s) from <var>component value 1.27 list</var>, with the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the 1.28 <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>. 1.29 - <li><p>Otherwise, <a href="#append-a-css-declaration" title="append a CSS declaration">append the CSS declaration</a> <var>property</var> with value <var>component value list</var>, with 1.30 + <li><p>Otherwise, <a href="#set-a-css-declaration" title="set a CSS declaration">set the CSS declaration</a> <var>property</var> with value <var>component value list</var>, with 1.31 the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the 1.32 <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>. 1.33 </ol> 1.34 1.35 -<p>To <dfn id="append-a-css-declaration">append a CSS declaration</dfn> <var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in 1.36 +<p>To <dfn id="set-a-css-declaration">set a CSS declaration</dfn> <var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in 1.37 a list of declarations <var>declarations</var>, follow these steps: 1.38 1.39 <ol> 1.40 @@ -2458,10 +2458,9 @@ 1.41 name</a> of a <a href="#css-declaration">CSS declaration</a> in <var>declarations</var>, let <var>declaration</var> be that <a href="#css-declaration">CSS declaration</a>. 1.42 <li><p>Otherwise, append a new <a href="#css-declaration">CSS declaration</a> with the <a href="#concept-css-declaration-property-name" title="concept-css-declaration-property-name">property name</a> <var>property</var> 1.43 to <var>declarations</var> and let <var>declaration</var> be that <a href="#css-declaration">CSS declaration</a>. 1.44 - <li><p>If <var>declaration</var> has its <a href="#concept-css-declaration-important-flag" title="concept-css-declaration-important-flag">important flag</a> set and the <i>important</i> flag is not set, 1.45 - terminate these steps. 1.46 <li><p>Set <var>declaration</var>'s <a href="#concept-css-declaration-value" title="concept-css-declaration-value">value</a> to <var>component value list</var>. 1.47 <li><p>If the <i>important</i> flag is set, set <var>declaration</var>'s <a href="#concept-css-declaration-important-flag" title="concept-css-declaration-important-flag">important flag</a>. 1.48 + Otherwise, unset <var>declaration</var>'s <a href="#concept-css-declaration-important-flag" title="concept-css-declaration-important-flag">important flag</a>. 1.49 </ol> 1.50 1.51 <p>The <dfn id="dom-cssstyledeclaration-setpropertyvalue" title="dom-CSSStyleDeclaration-setPropertyValue"><code>setPropertyValue(<var>property</var>, <var>value</var>)</code></dfn> method must run these
2.1 --- a/cssom/Overview.src.html Wed Oct 01 18:36:29 2014 +0200 2.2 +++ b/cssom/Overview.src.html Thu Oct 02 09:52:54 2014 +0200 2.3 @@ -2359,15 +2359,15 @@ 2.4 </li> 2.5 <li><p>If <var>component value list</var> is null terminate these steps. 2.6 <li><p>If <var>property</var> is a shorthand property, then for each longhand property <var>longhand</var> that <var>property</var> maps to, in canonical 2.7 - order, <span title="append a CSS declaration">append the CSS declaration</span> <var>longhand</var> with the appropriate value(s) from <var>component value 2.8 + order, <span title="set a CSS declaration">set the CSS declaration</span> <var>longhand</var> with the appropriate value(s) from <var>component value 2.9 list</var>, with the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the 2.10 <span title=concept-css-declaration-block-declarations>declarations</span>. 2.11 - <li><p>Otherwise, <span title="append a CSS declaration">append the CSS declaration</span> <var>property</var> with value <var>component value list</var>, with 2.12 + <li><p>Otherwise, <span title="set a CSS declaration">set the CSS declaration</span> <var>property</var> with value <var>component value list</var>, with 2.13 the <i>important</i> flag set if <var>priority</var> is not the empty string, and unset otherwise, and with the list of declarations being the 2.14 <span title=concept-css-declaration-block-declarations>declarations</span>. 2.15 </ol> 2.16 2.17 -<p>To <dfn>append a CSS declaration</dfn> <var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in 2.18 +<p>To <dfn>set a CSS declaration</dfn> <var>property</var> with a value <var>component value list</var> and optionally with an <i>important</i> flag set, in 2.19 a list of declarations <var>declarations</var>, follow these steps: 2.20 2.21 <ol> 2.22 @@ -2375,10 +2375,9 @@ 2.23 name</span> of a <span>CSS declaration</span> in <var>declarations</var>, let <var>declaration</var> be that <span>CSS declaration</span>. 2.24 <li><p>Otherwise, append a new <span>CSS declaration</span> with the <span title=concept-css-declaration-property-name>property name</span> <var>property</var> 2.25 to <var>declarations</var> and let <var>declaration</var> be that <span>CSS declaration</span>. 2.26 - <li><p>If <var>declaration</var> has its <span title=concept-css-declaration-important-flag>important flag</span> set and the <i>important</i> flag is not set, 2.27 - terminate these steps. 2.28 <li><p>Set <var>declaration</var>'s <span title=concept-css-declaration-value>value</span> to <var>component value list</var>. 2.29 <li><p>If the <i>important</i> flag is set, set <var>declaration</var>'s <span title=concept-css-declaration-important-flag>important flag</span>. 2.30 + Otherwise, unset <var>declaration</var>'s <span title=concept-css-declaration-important-flag>important flag</span>. 2.31 </ol> 2.32 2.33 <p>The <dfn title=dom-CSSStyleDeclaration-setPropertyValue><code>setPropertyValue(<var>property</var>, <var>value</var>)</code></dfn> method must run these