Skip to content

Commit c1b7736

Browse files
author
Simon Pieters
committed
[cssom-view] scrollLeft/Top should only scroll in one direction for root in standards mode. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23448
1 parent b8bcac5 commit c1b7736

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

cssom-view/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<h1>CSSOM View Module</h1>
1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 2 October 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 7 October 2013</h2>
2020

2121
<dl>
2222

@@ -83,7 +83,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
8383
can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
8484
index at http://www.w3.org/TR/.</a></em>
8585

86-
<p>This is the 2 October 2013 Editor's Draft of CSSOM View. Please send
86+
<p>This is the 7 October 2013 Editor's Draft of CSSOM View. Please send
8787
comments to
8888
<a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
8989
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
@@ -1086,7 +1086,7 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
10861086
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or the element has no associated <a href="#scrolling-box">scrolling box</a>, or the element has no
10871087
overflow, terminate these steps.</li>
10881088
<li><p>If the element is the root element invoke
1089-
<code title="dom-Window-scroll"><a href="#dom-window-scroll">scroll()</a></code> with zero as first
1089+
<code title="dom-Window-scroll"><a href="#dom-window-scroll">scroll()</a></code> with <code title="dom-Window-scrollX"><a href="#dom-window-scrollx">scrollX</a></code> as first
10901090
argument and <var>y</var> as second, and, if the given value is a <code><a href="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, the given value as the third argument.</li>
10911091
<li><p>If the element is <a href="#the-html-body-element">the HTML <code title="">body</code> element</a>,
10921092
the <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is in <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, and the element
@@ -1125,8 +1125,8 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
11251125
overflow, terminate these steps.</li>
11261126
<li><p>If the element is the root element invoke
11271127
<code title="dom-Window-scroll"><a href="#dom-window-scroll">scroll()</a></code> with
1128-
<var>x</var> as first argument and zero as second, and, if the given value is a <code><a href="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, the given value as the third
1129-
argument.</li>
1128+
<var>x</var> as first argument and <code title="dom-Window-scrollY"><a href="#dom-window-scrolly">scrollY</a></code> as second, and, if the given value is a <code><a href="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code>
1129+
object, the given value as the third argument.</li>
11301130
<li><p>If the element is <a href="#the-html-body-element">the HTML <code title="">body</code> element</a>,
11311131
the <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is in <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, and the element
11321132
does not have any vertical overflow, invoke
@@ -1972,6 +1972,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
19721972

19731973
Alan Stearns,
19741974
Alexey Feldgendler,
1975+
Antonio Gomes,
19751976
Björn Höhrmann,
19761977
Dan Bates,
19771978
David Vest,

cssom-view/Overview.src.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
10441044
<span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, or the element has no associated <span>scrolling box</span>, or the element has no
10451045
overflow, terminate these steps.</p></li>
10461046
<li><p>If the element is the root element invoke
1047-
<code title=dom-Window-scroll>scroll()</code> with zero as first
1047+
<code title=dom-Window-scroll>scroll()</code> with <code title=dom-Window-scrollX>scrollX</code> as first
10481048
argument and <var>y</var> as second, and, if the given value is a <code>ScrollOptionsVertical</code> object, the given value as the third argument.</p></li>
10491049
<li><p>If the element is <span>the HTML <code title>body</code> element</span>,
10501050
the <code data-anolis-spec=dom>Document</code> is in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, and the element
@@ -1083,8 +1083,8 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
10831083
overflow, terminate these steps.</p></li>
10841084
<li><p>If the element is the root element invoke
10851085
<code title=dom-Window-scroll>scroll()</code> with
1086-
<var>x</var> as first argument and zero as second, and, if the given value is a <code>ScrollOptionsHorizontal</code> object, the given value as the third
1087-
argument.</p></li>
1086+
<var>x</var> as first argument and <code title=dom-Window-scrollY>scrollY</code> as second, and, if the given value is a <code>ScrollOptionsHorizontal</code>
1087+
object, the given value as the third argument.</p></li>
10881088
<li><p>If the element is <span>the HTML <code title>body</code> element</span>,
10891089
the <code data-anolis-spec=dom>Document</code> is in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, and the element
10901090
does not have any vertical overflow, invoke
@@ -1904,6 +1904,7 @@ <h2 class="no-num">Acknowledgments</h2>
19041904

19051905
Alan Stearns,
19061906
Alexey Feldgendler,
1907+
Antonio Gomes,
19071908
Bj&ouml;rn H&ouml;hrmann,
19081909
Dan Bates,
19091910
David Vest,

0 commit comments

Comments
 (0)