[cssom-view] clientWidth/Height depend on quirks mode, not top-leveledness. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22917

Mon, 12 Aug 2013 12:40:52 +0200

author
Simon Pieters <simonp@opera.com>
date
Mon, 12 Aug 2013 12:40:52 +0200
changeset 8806
8688f55b42f4
parent 8805
f3bc4c932c1f
child 8807
bfc93c31b961

[cssom-view] clientWidth/Height depend on quirks mode, not top-leveledness. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22917

cssom-view/Overview.html file | annotate | diff | comparison | revisions
cssom-view/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/cssom-view/Overview.html	Mon Aug 12 17:12:29 2013 +0900
     1.2 +++ b/cssom-view/Overview.html	Mon Aug 12 12:40:52 2013 +0200
     1.3 @@ -16,7 +16,7 @@
     1.4  
     1.5   <h1>CSSOM View Module</h1>
     1.6  
     1.7 - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 27 June 2013</h2>
     1.8 + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 12 August 2013</h2>
     1.9  
    1.10   <dl>
    1.11  
    1.12 @@ -83,7 +83,7 @@
    1.13  can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
    1.14  index at http://www.w3.org/TR/.</a></em>
    1.15  
    1.16 -<p>This is the 27 June 2013 Editor's Draft of CSSOM View. Please send
    1.17 +<p>This is the 12 August 2013 Editor's Draft of CSSOM View. Please send
    1.18  comments to
    1.19  <a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
    1.20  (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
    1.21 @@ -1032,9 +1032,10 @@
    1.22  <p>The <dfn id="dom-element-clientwidth" title="dom-Element-clientWidth"><code>clientWidth</code></dfn> attribute must run these steps:
    1.23  <ol>
    1.24   <li><p>If the element has no associated <a href="#css-layout-box">CSS layout box</a> or if the <a href="#css-layout-box">CSS layout box</a> is inline, return zero.
    1.25 - <li><p>If the element is the root element and the element's document's <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> is a
    1.26 - <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#top-level-browsing-context">top-level browsing context</a>, return the <a href="#viewport">viewport</a> width excluding the size of a rendered scroll bar (if
    1.27 - any).
    1.28 + <li><p>If the element is the root element and the element's document is not in <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or
    1.29 + if the element is <a href="#the-html-body-element">the HTML <code title="">body</code> element</a> and the element's document <em>is</em> in
    1.30 + <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return the <a href="#viewport">viewport</a> width excluding the size of a rendered scroll bar
    1.31 + (if any).
    1.32   <li><p>Return the width of the <a href="#padding-edge">padding edge</a> excluding the width of any rendered scrollbar between the <a href="#padding-edge">padding edge</a> and the
    1.33   <a href="#border-edge">border edge</a>.
    1.34  </ol>
    1.35 @@ -1042,8 +1043,10 @@
    1.36  <p>The <dfn id="dom-element-clientheight" title="dom-Element-clientHeight"><code>clientHeight</code></dfn> attribute must run these steps:
    1.37  <ol>
    1.38   <li><p>If the element has no associated <a href="#css-layout-box">CSS layout box</a> or if the <a href="#css-layout-box">CSS layout box</a> is inline, return zero.
    1.39 - <li><p>If the element is the root element and the element's document's <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> is a
    1.40 - <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#top-level-browsing-context">top-level browsing context</a>, return the <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any).
    1.41 + <li><p>If the element is the root element and the element's document is not in <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or
    1.42 + if the element is <a href="#the-html-body-element">the HTML <code title="">body</code> element</a> and the element's document <em>is</em> in
    1.43 + <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return the <a href="#viewport">viewport</a> height excluding the size of a rendered scroll
    1.44 + bar (if any).
    1.45   <li><p>Return the height of the <a href="#padding-edge">padding edge</a> excluding the height of any rendered scrollbar between the <a href="#padding-edge">padding edge</a> and the
    1.46   <a href="#border-edge">border edge</a>.
    1.47  </ol>
    1.48 @@ -1578,6 +1581,7 @@
    1.49  Michael Dyck,
    1.50  Mike Wilson,
    1.51  Morten Stenshorne,
    1.52 +Pavel Curtis,
    1.53  Peter-Paul Koch,
    1.54  Rachel Kmetz,
    1.55  Robert O'Callahan,
     2.1 --- a/cssom-view/Overview.src.html	Mon Aug 12 17:12:29 2013 +0900
     2.2 +++ b/cssom-view/Overview.src.html	Mon Aug 12 12:40:52 2013 +0200
     2.3 @@ -994,9 +994,10 @@
     2.4  <p>The <dfn title=dom-Element-clientWidth><code>clientWidth</code></dfn> attribute must run these steps:
     2.5  <ol>
     2.6   <li><p>If the element has no associated <span>CSS layout box</span> or if the <span>CSS layout box</span> is inline, return zero.
     2.7 - <li><p>If the element is the root element and the element's document's <span data-anolis-spec=html>browsing context</span> is a
     2.8 - <span data-anolis-spec=html>top-level browsing context</span>, return the <span>viewport</span> width excluding the size of a rendered scroll bar (if
     2.9 - any).
    2.10 + <li><p>If the element is the root element and the element's document is not in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, or
    2.11 + if the element is <span>the HTML <code title>body</code> element</span> and the element's document <em>is</em> in
    2.12 + <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, return the <span>viewport</span> width excluding the size of a rendered scroll bar
    2.13 + (if any).
    2.14   <li><p>Return the width of the <span>padding edge</span> excluding the width of any rendered scrollbar between the <span>padding edge</span> and the
    2.15   <span>border edge</span>.
    2.16  </ol>
    2.17 @@ -1004,8 +1005,10 @@
    2.18  <p>The <dfn title=dom-Element-clientHeight><code>clientHeight</code></dfn> attribute must run these steps:
    2.19  <ol>
    2.20   <li><p>If the element has no associated <span>CSS layout box</span> or if the <span>CSS layout box</span> is inline, return zero.
    2.21 - <li><p>If the element is the root element and the element's document's <span data-anolis-spec=html>browsing context</span> is a
    2.22 - <span data-anolis-spec=html>top-level browsing context</span>, return the <span>viewport</span> height excluding the size of a rendered scroll bar (if any).
    2.23 + <li><p>If the element is the root element and the element's document is not in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, or
    2.24 + if the element is <span>the HTML <code title>body</code> element</span> and the element's document <em>is</em> in
    2.25 + <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, return the <span>viewport</span> height excluding the size of a rendered scroll
    2.26 + bar (if any).
    2.27   <li><p>Return the height of the <span>padding edge</span> excluding the height of any rendered scrollbar between the <span>padding edge</span> and the
    2.28   <span>border edge</span>.
    2.29  </ol>
    2.30 @@ -1520,6 +1523,7 @@
    2.31  Michael Dyck,
    2.32  Mike Wilson,
    2.33  Morten Stenshorne,
    2.34 +Pavel Curtis,
    2.35  Peter-Paul Koch,
    2.36  Rachel Kmetz,
    2.37  Robert O'Callahan,

mercurial