spec/Overview.html 1.1159 1968 Make scrollIntoView() into a no-op if th

Make scrollIntoView() into a no-op if the page is too short. (whatwg
r1968)

scrollIntoView([top])
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1159.html#scrollintoview

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1158&r2=1.1159&f=h
http://html5.org/tools/web-apps-tracker?from=1967&to=1968

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1158
retrieving revision 1.1159
diff -u -d -r1.1158 -r1.1159
--- Overview.html 31 Jul 2008 05:23:10 -0000 1.1158
+++ Overview.html 31 Jul 2008 09:32:30 -0000 1.1159
@@ -38882,9 +38882,11 @@
    of the element aligned with the bottom of the viewport. If it isn't
    possible to show the entire element in that way, or if the argument is
    omitted or is true, then the user agent should instead align the top of
-   the element with the top of the viewport. Visual user agents should
-   further scroll horizontally as necessary to bring the element to the
-   attention of the user.
+   the element with the top of the viewport. If the entire scrollable part of
+   the content is visible all at once (e.g. if a page is shorter than the
+   viewport), then the user agent should not scroll anything. Visual user
+   agents should further scroll horizontally as necessary to bring the
+   element to the attention of the user.
 
   <p>Non-visual user agents may ignore the argument, or may treat it in some
    media-specific manner most useful to the user.</p>

Received on Thursday, 31 July 2008 09:38:55 UTC