Skip to content

Commit 7ec0d20

Browse files
committed
align scrollHeight/scrollWidth with Gecko
1 parent 76d269b commit 7ec0d20

2 files changed

Lines changed: 37 additions & 31 deletions

File tree

Overview.html

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<h1 id="cssom-view-module">CSSOM View Module</h1>
2929

30-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 6 July 2011</h2>
30+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 14 July 2011</h2>
3131

3232
<dl>
3333

@@ -917,11 +917,6 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
917917
<var title="">x</var>,<code title="dom-Element-scrollTop"><a href="#dom-element-scrolltop">scrollTop</a></code>.
918918
</ol>
919919

920-
<!--
921-
XXX CORE-13162 CORE-1342
922-
http://lists.w3.org/Archives/Public/www-style/2011May/0103.html
923-
-->
924-
925920
<p>The <dfn id="dom-element-scrollwidth" title="dom-Element-scrollWidth"><code>scrollWidth</code></dfn>
926921
attribute must return the result of running these
927922
steps:</p>
@@ -930,13 +925,17 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
930925
<li><p>If the element does not have any associated CSS layout box return
931926
zero and terminate these steps.</li>
932927

933-
<li><p>If the element is the root element and the <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code>
934-
is not in <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a> return the value of
935-
<code title="dom-Window-innerWidth"><a href="#dom-window-innerwidth">innerWidth</a></code>.</li>
928+
<li><p>If the element is the root element and the
929+
<code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is not in
930+
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a>
931+
return
932+
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>
936933

937934
<li><p>If the element is <a href="#the-html-body-element">the HTML <code>body</code> element</a>
938-
and the <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is in <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a> return the
939-
value of <code title="dom-Window-innerWidth"><a href="#dom-window-innerwidth">innerWidth</a></code>.</li>
935+
and the <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is in
936+
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a>
937+
return
938+
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>
940939

941940
<li><p>Return the computed value of the '<code>padding-left</code>'
942941
property, plus the computed value of the '<code>padding-right</code>',
@@ -951,13 +950,17 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
951950
<li><p>If the element does not have any associated CSS layout box return
952951
zero and terminate these steps.</li>
953952

954-
<li><p>If the element is the root element and the <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code>
955-
is not in <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a> return the value of
956-
<code title="dom-Window-innerHeight"><a href="#dom-window-innerheight">innerHeight</a></code>.</li>
953+
<li><p>If the element is the root element and the
954+
<code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is not in
955+
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a>
956+
return
957+
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>
957958

958959
<li><p>If the element is <a href="#the-html-body-element">the HTML <code>body</code> element</a>
959-
and the <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is in <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a> return the
960-
value of <code title="dom-Window-innerHeight"><a href="#dom-window-innerheight">innerHeight</a></code>.</li>
960+
and the <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is in
961+
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-quirks-mode" title="concept-quirks-mode">quirks mode</a>
962+
return
963+
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>
961964

962965
<li><p>Return the computed value of the '<code>padding-top</code>'
963966
property, plus the computed value of the '<code>padding-bottom</code>',

Overview.src.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -888,11 +888,6 @@ <h3><code title>Element</code> Scrolling Members</h3>
888888
<var title>x</var>,<code title=dom-Element-scrollTop>scrollTop</code>.
889889
</ol>
890890

891-
<!--
892-
XXX CORE-13162 CORE-1342
893-
http://lists.w3.org/Archives/Public/www-style/2011May/0103.html
894-
-->
895-
896891
<p>The <dfn title=dom-Element-scrollWidth><code>scrollWidth</code></dfn>
897892
attribute must return the result of running these
898893
steps:</p>
@@ -901,13 +896,17 @@ <h3><code title>Element</code> Scrolling Members</h3>
901896
<li><p>If the element does not have any associated CSS layout box return
902897
zero and terminate these steps.</p></li>
903898

904-
<li><p>If the element is the root element and the <code data-anolis-spec=domcore>Document</code>
905-
is not in <span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span> return the value of
906-
<code title=dom-Window-innerWidth>innerWidth</code>.</p></li>
899+
<li><p>If the element is the root element and the
900+
<code data-anolis-spec=domcore>Document</code> is not in
901+
<span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span>
902+
return
903+
max(<span>document content</span> width, value of <code title=dom-Window-innerWidth>innerWidth</code>).</p></li>
907904

908905
<li><p>If the element is <span>the HTML <code>body</code> element</span>
909-
and the <code data-anolis-spec=domcore>Document</code> is in <span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span> return the
910-
value of <code title=dom-Window-innerWidth>innerWidth</code>.</p></li>
906+
and the <code data-anolis-spec=domcore>Document</code> is in
907+
<span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span>
908+
return
909+
max(<span>document content</span> width, value of <code title=dom-Window-innerWidth>innerWidth</code>).</p></li>
911910

912911
<li><p>Return the computed value of the '<code>padding-left</code>'
913912
property, plus the computed value of the '<code>padding-right</code>',
@@ -922,13 +921,17 @@ <h3><code title>Element</code> Scrolling Members</h3>
922921
<li><p>If the element does not have any associated CSS layout box return
923922
zero and terminate these steps.</p></li>
924923

925-
<li><p>If the element is the root element and the <code data-anolis-spec=domcore>Document</code>
926-
is not in <span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span> return the value of
927-
<code title=dom-Window-innerHeight>innerHeight</code>.</p></li>
924+
<li><p>If the element is the root element and the
925+
<code data-anolis-spec=domcore>Document</code> is not in
926+
<span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span>
927+
return
928+
max(<span>document content</span> height, value of <code title=dom-Window-innerHeight>innerHeight</code>).</p></li>
928929

929930
<li><p>If the element is <span>the HTML <code>body</code> element</span>
930-
and the <code data-anolis-spec=domcore>Document</code> is in <span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span> return the
931-
value of <code title=dom-Window-innerHeight>innerHeight</code>.</p></li>
931+
and the <code data-anolis-spec=domcore>Document</code> is in
932+
<span data-anolis-spec=domcore title=concept-quirks-mode>quirks mode</span>
933+
return
934+
max(<span>document content</span> height, value of <code title=dom-Window-innerHeight>innerHeight</code>).</p></li>
932935

933936
<li><p>Return the computed value of the '<code>padding-top</code>'
934937
property, plus the computed value of the '<code>padding-bottom</code>',

0 commit comments

Comments
 (0)