[cssom] Expose cascaded style instead of specified style. <http://www.w3.org/mid/CAAWBYDD+5gG9rrQbPyriRnSJHktL_6kyUkuSVW4O9MxC0DRFHg@mail.gmail.com>

Mon, 12 Aug 2013 21:38:54 +0200

author
Simon Pieters <simonp@opera.com>
date
Mon, 12 Aug 2013 21:38:54 +0200
changeset 8811
4c1cca709e91
parent 8810
3b8ded576b8a
child 8812
34d07b09df32

[cssom] Expose cascaded style instead of specified style. <http://www.w3.org/mid/CAAWBYDD+5gG9rrQbPyriRnSJHktL_6kyUkuSVW4O9MxC0DRFHg@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	Mon Aug 12 21:24:26 2013 +0200
     1.2 +++ b/cssom/Overview.html	Mon Aug 12 21:38:54 2013 +0200
     1.3 @@ -268,8 +268,10 @@
     1.4  <code title=""><var>A</var></code> where <code title=""><var>A</var></code> is actually an interface, it generally means an object implementing interface
     1.5  <code title=""><var>A</var></code>.</p>
     1.6  
     1.7 -<p>The terms <dfn id="whitespace">whitespace</dfn>, <dfn id="ignored">ignored</dfn>, <dfn id="specified-value">specified value</dfn>, <dfn id="computed-value">computed value</dfn> and <dfn id="used-value">used value</dfn> are defined in CSS.
     1.8 -<a href="#refsCSS">[CSS]</a>
     1.9 +<p>The terms <dfn id="whitespace">whitespace</dfn> and <dfn id="ignored">ignored</dfn> are defined in CSS. <a href="#refsCSS">[CSS]</a>
    1.10 +
    1.11 +<p>The terms <dfn id="cascaded-value">cascaded value</dfn>, <dfn id="computed-value">computed value</dfn> and <dfn id="used-value">used value</dfn> are defined in CSS Cascade and Inheritance.
    1.12 +<a href="#refsCSSCASCADE">[CSSCASCADE]</a>
    1.13  
    1.14  <p>The terms <dfn id="simple-selector">simple selector</dfn>, <dfn id="sequence-of-simple-selectors">sequence of simple selectors</dfn>, <dfn id="universal-selector">universal selector</dfn> and <dfn id="group-of-selectors">group of selectors</dfn> are defined in
    1.15  Selectors. <a href="#refsSELECTORS">[SELECTORS]</a>
    1.16 @@ -2805,16 +2807,16 @@
    1.17  
    1.18  <pre class="idl">[NoInterfaceObject]
    1.19  interface <dfn id="getstyleutils">GetStyleUtils</dfn> {
    1.20 -  readonly attribute <a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-getstyleutils-specifiedstyle" title="dom-GetStyleUtils-specifiedStyle">specifiedStyle</a>;
    1.21 +  readonly attribute <a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-getstyleutils-cascadedstyle" title="dom-GetStyleUtils-cascadedStyle">cascadedStyle</a>;
    1.22    <!--readonly attribute <span>CSSStyleDeclaration</span> <span title=dom-GetStyleUtils-defaultStyle>defaultStyle</span>;
    1.23    -->readonly attribute <a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-getstyleutils-computedstyle" title="dom-GetStyleUtils-computedStyle">computedStyle</a>;
    1.24    readonly attribute <a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-getstyleutils-usedstyle" title="dom-GetStyleUtils-usedStyle">usedStyle</a>;
    1.25  };</pre>
    1.26  
    1.27 -<p class="atrisk">The <dfn id="dom-getstyleutils-specifiedstyle" title="dom-GetStyleUtils-specifiedStyle"><code>specifiedStyle</code></dfn> attribute must return a <a href="#css-declaration-block">CSS declaration block</a>
    1.28 +<p class="atrisk">The <dfn id="dom-getstyleutils-cascadedstyle" title="dom-GetStyleUtils-cascadedStyle"><code>cascadedStyle</code></dfn> attribute must return a <a href="#css-declaration-block">CSS declaration block</a>
    1.29  with the <a href="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> set and the
    1.30  <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a> set to all longhand properties
    1.31 -that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a> with the value being the <a href="#specified-value">specified value</a>
    1.32 +that are <a href="#supported-css-property" title="supported CSS property">supported CSS properties</a> with the value being the <a href="#cascaded-value">cascaded value</a>
    1.33  computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated
    1.34  with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated document</a>.</p>
    1.35  
    1.36 @@ -2840,7 +2842,7 @@
    1.37  computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated
    1.38  with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated document</a>.</p>
    1.39  
    1.40 -<p class="warning">The <code title="dom-GetStyleUtils-specifiedStyle"><a href="#dom-getstyleutils-specifiedstyle">specifiedStyle</a></code>, <code title="dom-GetStyleUtils-computedStyle"><a href="#dom-getstyleutils-computedstyle">computedStyle</a></code> and
    1.41 +<p class="warning">The <code title="dom-GetStyleUtils-cascadedStyle"><a href="#dom-getstyleutils-cascadedstyle">cascadedStyle</a></code>, <code title="dom-GetStyleUtils-computedStyle"><a href="#dom-getstyleutils-computedstyle">computedStyle</a></code> and
    1.42  <code title="dom-GetStyleUtils-usedStyle"><a href="#dom-getstyleutils-usedstyle">usedStyle</a></code> methods expose information from <a href="#css-style-sheet" title="CSS style sheet">CSS style sheets</a> with the
    1.43  <a href="#concept-css-style-sheet-origin-clean-flag" title="concept-css-style-sheet-origin-clean-flag">origin-clean flag</a> unset.
    1.44  
     2.1 --- a/cssom/Overview.src.html	Mon Aug 12 21:24:26 2013 +0200
     2.2 +++ b/cssom/Overview.src.html	Mon Aug 12 21:38:54 2013 +0200
     2.3 @@ -190,8 +190,10 @@
     2.4  <code title><var>A</var></code> where <code title><var>A</var></code> is actually an interface, it generally means an object implementing interface
     2.5  <code title><var>A</var></code>.</p>
     2.6  
     2.7 -<p>The terms <dfn>whitespace</dfn>, <dfn>ignored</dfn>, <dfn>specified value</dfn>, <dfn>computed value</dfn> and <dfn>used value</dfn> are defined in CSS.
     2.8 -<span data-anolis-ref>CSS</span>
     2.9 +<p>The terms <dfn>whitespace</dfn> and <dfn>ignored</dfn> are defined in CSS. <span data-anolis-ref>CSS</span>
    2.10 +
    2.11 +<p>The terms <dfn>cascaded value</dfn>, <dfn>computed value</dfn> and <dfn>used value</dfn> are defined in CSS Cascade and Inheritance.
    2.12 +<span data-anolis-ref>CSSCASCADE</span>
    2.13  
    2.14  <p>The terms <dfn>simple selector</dfn>, <dfn>sequence of simple selectors</dfn>, <dfn>universal selector</dfn> and <dfn>group of selectors</dfn> are defined in
    2.15  Selectors. <span data-anolis-ref>SELECTORS</span>
    2.16 @@ -2727,16 +2729,16 @@
    2.17  
    2.18  <pre class=idl>[NoInterfaceObject]
    2.19  interface <dfn>GetStyleUtils</dfn> {
    2.20 -  readonly attribute <span>CSSStyleDeclaration</span> <span title=dom-GetStyleUtils-specifiedStyle>specifiedStyle</span>;
    2.21 +  readonly attribute <span>CSSStyleDeclaration</span> <span title=dom-GetStyleUtils-cascadedStyle>cascadedStyle</span>;
    2.22    <!--readonly attribute <span>CSSStyleDeclaration</span> <span title=dom-GetStyleUtils-defaultStyle>defaultStyle</span>;
    2.23    -->readonly attribute <span>CSSStyleDeclaration</span> <span title=dom-GetStyleUtils-computedStyle>computedStyle</span>;
    2.24    readonly attribute <span>CSSStyleDeclaration</span> <span title=dom-GetStyleUtils-usedStyle>usedStyle</span>;
    2.25  };</pre>
    2.26  
    2.27 -<p class=atrisk>The <dfn title=dom-GetStyleUtils-specifiedStyle><code>specifiedStyle</code></dfn> attribute must return a <span>CSS declaration block</span>
    2.28 +<p class=atrisk>The <dfn title=dom-GetStyleUtils-cascadedStyle><code>cascadedStyle</code></dfn> attribute must return a <span>CSS declaration block</span>
    2.29  with the <span title=concept-css-declaration-block-readonly-flag>readonly flag</span> set and the
    2.30  <span title=concept-css-declaration-block-declarations>declarations</span> set to all longhand properties
    2.31 -that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>specified value</span>
    2.32 +that are <span title="supported CSS property">supported CSS properties</span> with the value being the <span>cascaded value</span>
    2.33  computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated
    2.34  with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
    2.35  
    2.36 @@ -2762,7 +2764,7 @@
    2.37  computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated
    2.38  with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
    2.39  
    2.40 -<p class=warning>The <code title=dom-GetStyleUtils-specifiedStyle>specifiedStyle</code>, <code title=dom-GetStyleUtils-computedStyle>computedStyle</code> and
    2.41 +<p class=warning>The <code title=dom-GetStyleUtils-cascadedStyle>cascadedStyle</code>, <code title=dom-GetStyleUtils-computedStyle>computedStyle</code> and
    2.42  <code title=dom-GetStyleUtils-usedStyle>usedStyle</code> methods expose information from <span title="CSS style sheet">CSS style sheets</span> with the
    2.43  <span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> unset.
    2.44  

mercurial