cssom/Overview.src.html

changeset 8870
1a4eaf3f7f1d
parent 8826
aa74bff40af5
child 8901
048b4760e33e
     1.1 --- a/cssom/Overview.src.html	Fri Aug 16 17:05:57 2013 -0700
     1.2 +++ b/cssom/Overview.src.html	Sun Aug 18 23:23:45 2013 +0200
     1.3 @@ -2141,7 +2141,7 @@
     1.4    DOMString <span title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue</span>(DOMString property);
     1.5    DOMString <span title=dom-CSSStyleDeclaration-getPropertyPriority>getPropertyPriority</span>(DOMString property);
     1.6    void <span title=dom-CSSStyleDeclaration-setProperty>setProperty</span>(DOMString property, [TreatNullAs=EmptyString] DOMString value, <!--
     1.7 -  -->[TreatNullAs=EmptyString] optional DOMString priority = "");
     1.8 +  -->[TreatNullAs=EmptyString] optional DOMString priority);
     1.9    DOMString <span title=dom-CSSStyleDeclaration-removeProperty>removeProperty</span>(DOMString property);
    1.10    readonly attribute <span>CSSRule</span>? <span title=dom-CSSStyleDeclaration-length>parentRule</span>;
    1.11             attribute DOMString <span title=dom-CSSStyleDeclaration-cssFloat>cssFloat</span>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] -->
    1.12 @@ -2225,8 +2225,9 @@
    1.13   algorithm.</p></li>
    1.14   <li><p>If <var>value</var> is the empty string, invoke <code title='dom-CSSStyleDeclaration-removeProperty'>removeProperty()</code>
    1.15   with <var>property</var> as argument and terminate this algorithm.</p></li>
    1.16 - <li><p>If <var>priority</var> is neither an <span data-anolis-spec=dom>ASCII case-insensitive</span> match for the string "<code title>important</code>"
    1.17 - nor the empty string terminate this algorithm.</p></li>
    1.18 + <li><p>If <var>priority</var> is not specified, let <var>priority action</var> be "leave as is". Otherwise, if <var>priority</var> is the empty string, let
    1.19 + <var>priority action</var> be "unset important". Otherwise, if <var>priority</var> is an <span data-anolis-spec=dom>ASCII case-insensitive</span> match for the
    1.20 + string "<code title>important</code>", set <var>priority action</var> to "set important". Otherwise, terminate this algorithm.
    1.21   <li>
    1.22    <p>Let <var>component value list</var> be the result of <span title='parse a CSS value'>parsing</span> <var>value</var>.
    1.23    <p class='note'><var>value</var> can not include "<code title>!important</code>".</p>
    1.24 @@ -2234,15 +2235,15 @@
    1.25   <li><p>If <var>component value list</var> is null terminate these steps.
    1.26   <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.27   order, <span title="set a CSS property">set the CSS property</span> <var>longhand</var> to the appropriate value(s) from <var>component value list</var>, with
    1.28 - the <var>important</var> flag set if <var>priority</var> is not the empty string, and with the list of declarations being the
    1.29 + <i>priority action</i> being <var>priority action</var>, and with the list of declarations being the
    1.30   <span title=concept-css-declaration-block-declarations>declarations</span>.
    1.31   <li><p>Otherwise, <span title="set a CSS property">set the CSS property</span> <var>property</var> to <var>component value list</var>, with
    1.32 - the <var>important</var> flag set if <var>priority</var> is not the empty string, and with the list of declarations being the
    1.33 + <i>priority action</i> being <var>priority action</var>, and with the list of declarations being the
    1.34   <span title=concept-css-declaration-block-declarations>declarations</span>.
    1.35  </ol>
    1.36  
    1.37 -<p>To <dfn>set a CSS property</dfn> <var>property</var> to a value <var>component value list</var> and optionally with an <var>important</var> flag set, in a
    1.38 -list of declarations <var>declarations</var>, follow these steps:
    1.39 +<p>To <dfn>set a CSS property</dfn> <var>property</var> to a value <var>component value list</var> and with <i>priority action</i> being either "set
    1.40 +important", "unset important" or "leave as is", in a list of declarations <var>declarations</var>, follow these steps:
    1.41  
    1.42  <ol>
    1.43   <li><p>If <var>property</var> is a <span data-anolis-spec=dom>case-sensitive</span> match for a property of a declaration in
    1.44 @@ -2250,7 +2251,8 @@
    1.45   <li><p>Otherwise, append a new declaration with the property name <var>property</var> to <var>declarations</var> and let <var>declaration</var> be that
    1.46   declaration.
    1.47   <li><p>Set <var>declaration</var>'s value to <var>component value list</var>.
    1.48 - <li><p>Set the declaration's <i>important</i> flag if <var>important</var> is set, or unset it otherwise.
    1.49 + <li><p>If <i>priority action</i> is "set important", set the declaration's <i>important</i> flag.
    1.50 + <li><p>Otherwise, if <i>priority action</i> is "unset important", unset the declaration's <i>important</i> flag.
    1.51  </ol>
    1.52  
    1.53  <p>The <dfn title=dom-CSSStyleDeclaration-removeProperty><code>removeProperty(<var>property</var>)</code></dfn> method must run these steps:</p>
    1.54 @@ -2944,6 +2946,7 @@
    1.55  Mike Sherov,
    1.56  Morten Stenshorne,
    1.57  Øyvind Stenhaug,
    1.58 +Peter Sloetjes,
    1.59  Philip Taylor,
    1.60  Robert O'Callahan,
    1.61  Simon Sapin,

mercurial