[cssom-view] Exclude the scrollbar for element.scrollHeight/Width. http://www.w3.org/mid/815a3b87078b47889a2d8ee6c2ba9b29@BY2PR03MB057.namprd03.prod.outlook.com
authorSimon Pieters <simonp@opera.com>
Mon, 27 May 2013 15:47:02 +0200
changeset 82563e45009199b6
parent 8255 1398c808e617
child 8257 fbcf922975d0
[cssom-view] Exclude the scrollbar for element.scrollHeight/Width. http://www.w3.org/mid/815a3b87078b47889a2d8ee6c2ba9b29@BY2PR03MB057.namprd03.prod.outlook.com
cssom-view/Overview.html
cssom-view/Overview.src.html
     1.1 --- a/cssom-view/Overview.html	Mon May 27 15:23:55 2013 +0200
     1.2 +++ b/cssom-view/Overview.html	Mon May 27 15:47:02 2013 +0200
     1.3 @@ -786,14 +786,16 @@
     1.4  <ol>
     1.5   <li><p>If the element does not have any associated <a href="#css-layout-box">CSS layout box</a> return
     1.6   zero and terminate these steps.</li>
     1.7 + <li><p>Let <var title="">viewport width</var> be the width of the <a href="#viewport">viewport</a> excluding the width of the scroll bar, if any, or zero if there is no
     1.8 + <a href="#viewport">viewport</a>.
     1.9   <li><p>If the element is the root element and the
    1.10   <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is not in
    1.11   <a class="external" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>
    1.12 - return max(<a href="#document-content">document content</a> width, value of <code title="dom-Window-innerWidth"><a href="#dom-window-innerwidth">innerWidth</a></code>).</li>
    1.13 + return max(<a href="#document-content">document content</a> width, <var title="">viewport width</var>).</li>
    1.14   <li><p>If the element is <a href="#the-html-body-element">the HTML <code>body</code> element</a>
    1.15   and the <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is in
    1.16   <a class="external" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>
    1.17 - return max(<a href="#document-content">document content</a> width, value of <code title="dom-Window-innerWidth"><a href="#dom-window-innerwidth">innerWidth</a></code>).</li>
    1.18 + return max(<a href="#document-content">document content</a> width, <var title="">viewport width</var>).</li>
    1.19   <li><p>Return the width of the element's <a href="#scrolling-area">scrolling area</a>.</li>
    1.20  </ol>
    1.21  
    1.22 @@ -801,14 +803,16 @@
    1.23  <ol>
    1.24   <li><p>If the element does not have any associated <a href="#css-layout-box">CSS layout box</a> return
    1.25   zero and terminate these steps.</li>
    1.26 + <li><p>Let <var title="">viewport height</var> be the height of the <a href="#viewport">viewport</a> excluding the height of the scroll bar, if any, or zero if there is no
    1.27 + <a href="#viewport">viewport</a>.
    1.28   <li><p>If the element is the root element and the
    1.29   <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is not in
    1.30   <a class="external" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>
    1.31 - return max(<a href="#document-content">document content</a> height, value of <code title="dom-Window-innerHeight"><a href="#dom-window-innerheight">innerHeight</a></code>).</li>
    1.32 + return max(<a href="#document-content">document content</a> height, <var title="">viewport height</var>).</li>
    1.33   <li><p>If the element is <a href="#the-html-body-element">the HTML <code>body</code> element</a>
    1.34   and the <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is in
    1.35   <a class="external" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>
    1.36 - return max(<a href="#document-content">document content</a> height, value of <code title="dom-Window-innerHeight"><a href="#dom-window-innerheight">innerHeight</a></code>).</li>
    1.37 + return max(<a href="#document-content">document content</a> height, <var title="">viewport height</var>).</li>
    1.38   <li><p>Return the height of the element's <a href="#scrolling-area">scrolling area</a>.</li>
    1.39  </ol>
    1.40  
     2.1 --- a/cssom-view/Overview.src.html	Mon May 27 15:23:55 2013 +0200
     2.2 +++ b/cssom-view/Overview.src.html	Mon May 27 15:47:02 2013 +0200
     2.3 @@ -754,14 +754,16 @@
     2.4  <ol>
     2.5   <li><p>If the element does not have any associated <span>CSS layout box</span> return
     2.6   zero and terminate these steps.</p></li>
     2.7 + <li><p>Let <var title>viewport width</var> be the width of the <span>viewport</span> excluding the width of the scroll bar, if any, or zero if there is no
     2.8 + <span>viewport</span>.
     2.9   <li><p>If the element is the root element and the
    2.10   <code data-anolis-spec=dom>Document</code> is not in
    2.11   <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>
    2.12 - return max(<span>document content</span> width, value of <code title=dom-Window-innerWidth>innerWidth</code>).</p></li>
    2.13 + return max(<span>document content</span> width, <var title>viewport width</var>).</p></li>
    2.14   <li><p>If the element is <span>the HTML <code>body</code> element</span>
    2.15   and the <code data-anolis-spec=dom>Document</code> is in
    2.16   <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>
    2.17 - return max(<span>document content</span> width, value of <code title=dom-Window-innerWidth>innerWidth</code>).</p></li>
    2.18 + return max(<span>document content</span> width, <var title>viewport width</var>).</p></li>
    2.19   <li><p>Return the width of the element's <span>scrolling area</span>.</p></li>
    2.20  </ol>
    2.21  
    2.22 @@ -769,14 +771,16 @@
    2.23  <ol>
    2.24   <li><p>If the element does not have any associated <span>CSS layout box</span> return
    2.25   zero and terminate these steps.</p></li>
    2.26 + <li><p>Let <var title>viewport height</var> be the height of the <span>viewport</span> excluding the height of the scroll bar, if any, or zero if there is no
    2.27 + <span>viewport</span>.
    2.28   <li><p>If the element is the root element and the
    2.29   <code data-anolis-spec=dom>Document</code> is not in
    2.30   <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>
    2.31 - return max(<span>document content</span> height, value of <code title=dom-Window-innerHeight>innerHeight</code>).</p></li>
    2.32 + return max(<span>document content</span> height, <var title>viewport height</var>).</p></li>
    2.33   <li><p>If the element is <span>the HTML <code>body</code> element</span>
    2.34   and the <code data-anolis-spec=dom>Document</code> is in
    2.35   <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>
    2.36 - return max(<span>document content</span> height, value of <code title=dom-Window-innerHeight>innerHeight</code>).</p></li>
    2.37 + return max(<span>document content</span> height, <var title>viewport height</var>).</p></li>
    2.38   <li><p>Return the height of the element's <span>scrolling area</span>.</p></li>
    2.39  </ol>
    2.40