[cssom] Make .style better defined and add [putForwards=cssText] (present in the HTML spec). https://www.w3.org/Bugs/Public/show_bug.cgi?id=21848

Fri, 26 Apr 2013 14:45:16 +0200

author
Simon Pieters <simonp@opera.com>
date
Fri, 26 Apr 2013 14:45:16 +0200
changeset 8028
c58d66b43ac6
parent 8027
9dcc8a9a1b5d
child 8029
3a1132cf3206

[cssom] Make .style better defined and add [putForwards=cssText] (present in the HTML spec). https://www.w3.org/Bugs/Public/show_bug.cgi?id=21848

cssom/Overview.html file | annotate | diff | comparison | revisions
cssom/idl/ElementCSSInlineStyle.idl file | annotate | diff | comparison | revisions
     1.1 --- a/cssom/Overview.html	Fri Apr 26 11:19:50 2013 +0200
     1.2 +++ b/cssom/Overview.html	Fri Apr 26 14:45:16 2013 +0200
     1.3 @@ -2392,16 +2392,16 @@
     1.4  
     1.5    <h3 id="the-elementcssinlinestyle-interface"><span class="secno">7.1 </span>The <code>ElementCSSInlineStyle</code> Interface</h3>
     1.6  
     1.7 -  The <code>ElementCSSInlineStyle</code> interface is implemented by <code>Element</code> objects in order to provide access to inline style properties.
     1.8 +  <p>The <code>ElementCSSInlineStyle</code> interface provides access to inline style properties of an element.</p>
     1.9  <pre class="idl"><span class="idlInterface" id="widl-def-ElementCSSInlineStyle">[NoInterfaceObject]
    1.10  interface <span class="idlInterfaceID">ElementCSSInlineStyle</span> {
    1.11 -<span class="idlAttribute">    readonly attribute <span class="idlAttrType"><a>CSSStyleDeclaration</a></span> <span class="idlAttrName"><a href="#widl-ElementCSSInlineStyle-style">style</a></span>;</span>
    1.12 +<span class="idlAttribute">    [PutForwards=cssText] readonly attribute <span class="idlAttrType"><a>CSSStyleDeclaration</a></span> <span class="idlAttrName"><a href="#widl-ElementCSSInlineStyle-style">style</a></span>;</span>
    1.13  };</span></pre>
    1.14  <dl class="attributes">
    1.15  <dt class="attribute" id="widl-ElementCSSInlineStyle-style">
    1.16  <dfn id="widl-ElementCSSInlineStyle-style"><code>style</code></dfn> of type <span class="idlAttrType"><a>CSSStyleDeclaration</a></span>, readonly</dt>
    1.17  <dd>
    1.18 -The <code><a href="#widl-ElementCSSInlineStyle-style">style</a></code> attribute must return a mutable <code>CSSStyleDeclaration</code> object    that represents the inline style properties of the associated <code>Element</code> instance.</dd>
    1.19 +<p>The <code><a href="#widl-ElementCSSInlineStyle-style">style</a></code> attribute must return a <a href="#css-declaration-block">CSS declaration block</a> with the    <a href="#css-declaration-block-declarations">CSS declaration block declarations</a> being set to the declarations    specified in the element's <code title="">style</code> content attribute. If the    <code title="">style</code> content attribute is absent, the object represents an empty    declaration. Mutating the <code>CSSStyleDeclaration</code> object must set the    <code title="">style</code> content attribute on the element to the    <a href="#serialize-a-css-declaration-block" title="serialize a CSS declaration block">serialization</a> of the    <code>CSSStyleDeclaration</code>'s <a href="#css-declaration-block-declarations">CSS declaration block declarations</a>.    The same object must be returned each time. The object is be live; if the    <code title="">style</code> content attribute is set, changed or removed, the <a href="#css-declaration-block-declarations">CSS    declaration block declarations</a> must be updated as appropriate.</dd>
    1.20  </dl>
    1.21  
    1.22  
     2.1 --- a/cssom/idl/ElementCSSInlineStyle.idl	Fri Apr 26 11:19:50 2013 +0200
     2.2 +++ b/cssom/idl/ElementCSSInlineStyle.idl	Fri Apr 26 14:45:16 2013 +0200
     2.3 @@ -1,13 +1,22 @@
     2.4  [NoInterfaceObject,
     2.5   Documentation=
     2.6 - "The {@name} {@type} is implemented by <code>Element</code> objects in order to provide access to inline style properties."
     2.7 + "<p>The {@name} {@type} provides access to inline style properties of an element.</p>"
     2.8  ]
     2.9  interface ElementCSSInlineStyle {
    2.10  
    2.11    [Documentation=
    2.12 -   "The {@name} {@type} must return a mutable <code>CSSStyleDeclaration</code> object\
    2.13 -    that represents the inline style properties of the associated <code>Element</code> instance."
    2.14 -  ]
    2.15 -  readonly attribute CSSStyleDeclaration style;
    2.16 +   "<p>The {@name} {@type} must return a <span>CSS declaration block</span> with the\
    2.17 +    <span>CSS declaration block declarations</span> being set to the declarations\
    2.18 +    specified in the element's <code title>style</code> content attribute. If the\
    2.19 +    <code title>style</code> content attribute is absent, the object represents an empty\
    2.20 +    declaration. Mutating the <code>CSSStyleDeclaration</code> object must set the\
    2.21 +    <code title>style</code> content attribute on the element to the\
    2.22 +    <span title='serialize a CSS declaration block'>serialization</span> of the\
    2.23 +    <code>CSSStyleDeclaration</code>'s <span>CSS declaration block declarations</span>.\
    2.24 +    The same object must be returned each time. The object is be live; if the\
    2.25 +    <code title>style</code> content attribute is set, changed or removed, the <span>CSS\
    2.26 +    declaration block declarations</span> must be updated as appropriate.</p>"
    2.27 +  ,
    2.28 +  PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
    2.29  
    2.30  };

mercurial