[cssom] CSSStyleDeclaration properties need [TreatNullAs=EmptyString]; specify cssFloat

Mon, 22 Apr 2013 12:09:10 +0200

author
Simon Pieters <simonp@opera.com>
date
Mon, 22 Apr 2013 12:09:10 +0200
changeset 7972
f2b03be2c8d5
parent 7971
abdd9e2238b6
child 7973
20a1acb17302

[cssom] CSSStyleDeclaration properties need [TreatNullAs=EmptyString]; specify cssFloat

cssom/Overview.html file | annotate | diff | comparison | revisions
cssom/cssom-source file | annotate | diff | comparison | revisions
cssom/data/xrefs/css/cssom.json file | annotate | diff | comparison | revisions
     1.1 --- a/cssom/Overview.html	Mon Apr 22 11:35:40 2013 +0200
     1.2 +++ b/cssom/Overview.html	Mon Apr 22 12:09:10 2013 +0200
     1.3 @@ -1979,12 +1979,28 @@
     1.4  </dl>
     1.5  
     1.6    
     1.7 -  <p>For each CSS property <var>property</var> that the user agent supports, the following
     1.8 -  partial interface applies where <var>attribute</var> is obtained by running the
     1.9 -  <a href="#css-property-to-idl-attribute">CSS property to IDL attribute</a> algorithm for <var>property</var>.
    1.10 -
    1.11 +  <p>If the user agent supports the 'float' CSS property, the following partial interface
    1.12 +  applies.
    1.13 +  
    1.14    <pre class="idl">partial interface CSSStyleDeclaration {
    1.15 -  attribute DOMString <var>attribute</var>;
    1.16 +  [TreatNullAs=EmptyString] attribute DOMString cssFloat;
    1.17 +};</pre>
    1.18 +
    1.19 +  <p>The <code><dfn id="dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</dfn></code>
    1.20 +  attribute, on getting, must return the result of invoking
    1.21 +  <code title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue()</code> with
    1.22 +  "float" as argument. On setting, the attribute must invoke
    1.23 +  <code title="dom-CSSStyleDeclaration-setPropertyValue">setPropertyValue()</code> with
    1.24 +  "float" as first argument, as second argument the given value, and no third argument.
    1.25 +  Any exceptions thrown must be re-thrown.
    1.26 +
    1.27 +  <p>For each CSS property <var>property</var> that the user agent supports, except for
    1.28 +  the 'float' property, the following partial interface applies where <var>attribute</var>
    1.29 +  is obtained by running the <a href="#css-property-to-idl-attribute">CSS property to IDL attribute</a> algorithm for
    1.30 +  <var>property</var>.
    1.31 +
    1.32 +  <pre class="idl">partial interface CSSStyleDeclaration {
    1.33 +  [TreatNullAs=EmptyString] attribute DOMString <var>attribute</var>;
    1.34  };</pre>
    1.35  
    1.36    <p>Getting the <var>attribute</var> attribute must return the result of invoking
     2.1 --- a/cssom/cssom-source	Mon Apr 22 11:35:40 2013 +0200
     2.2 +++ b/cssom/cssom-source	Mon Apr 22 12:09:10 2013 +0200
     2.3 @@ -1535,12 +1535,28 @@
     2.4  
     2.5    <!--{@idl(CSSStyleDeclaration)}-->
     2.6    
     2.7 -  <p>For each CSS property <var>property</var> that the user agent supports, the following
     2.8 -  partial interface applies where <var>attribute</var> is obtained by running the
     2.9 -  <span>CSS property to IDL attribute</span> algorithm for <var>property</var>.
    2.10 -
    2.11 +  <p>If the user agent supports the 'float' CSS property, the following partial interface
    2.12 +  applies.
    2.13 +  
    2.14    <pre class=idl>partial interface CSSStyleDeclaration {
    2.15 -  attribute DOMString <var>attribute</var>;
    2.16 +  [TreatNullAs=EmptyString] attribute DOMString cssFloat;
    2.17 +};</pre>
    2.18 +
    2.19 +  <p>The <code><dfn title=dom-CSSStyleDeclaration-cssFloat>cssFloat</dfn></code>
    2.20 +  attribute, on getting, must return the result of invoking
    2.21 +  <code title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with
    2.22 +  "float" as argument. On setting, the attribute must invoke
    2.23 +  <code title=dom-CSSStyleDeclaration-setPropertyValue>setPropertyValue()</code> with
    2.24 +  "float" as first argument, as second argument the given value, and no third argument.
    2.25 +  Any exceptions thrown must be re-thrown.
    2.26 +
    2.27 +  <p>For each CSS property <var>property</var> that the user agent supports, except for
    2.28 +  the 'float' property, the following partial interface applies where <var>attribute</var>
    2.29 +  is obtained by running the <span>CSS property to IDL attribute</span> algorithm for
    2.30 +  <var>property</var>.
    2.31 +
    2.32 +  <pre class=idl>partial interface CSSStyleDeclaration {
    2.33 +  [TreatNullAs=EmptyString] attribute DOMString <var>attribute</var>;
    2.34  };</pre>
    2.35  
    2.36    <p>Getting the <var>attribute</var> attribute must return the result of invoking
     3.1 --- a/cssom/data/xrefs/css/cssom.json	Mon Apr 22 11:35:40 2013 +0200
     3.2 +++ b/cssom/data/xrefs/css/cssom.json	Mon Apr 22 12:09:10 2013 +0200
     3.3 @@ -15,6 +15,7 @@
     3.4      "css rule": "rule",
     3.5      "css style sheet": "css-style-sheet",
     3.6      "document style sheets": "document-style-sheets",
     3.7 +    "dom-cssstyledeclaration-cssfloat": "dom-cssstyledeclaration-cssfloat",
     3.8      "enable a style sheet set": "enable-a-style-sheet-set",
     3.9      "enabled style sheet set": "enabled-style-sheet-set",
    3.10      "escape a character": "escape-a-character",

mercurial