[html5] r1968 - [] (0) Make scrollIntoView() into a no-op if the page is too short.

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 31 02:32:26 PDT 2008


Author: ianh
Date: 2008-07-31 02:32:25 -0700 (Thu, 31 Jul 2008)
New Revision: 1968

Modified:
   index
   source
Log:
[] (0) Make scrollIntoView() into a no-op if the page is too short.

Modified: index
===================================================================
--- index	2008-07-31 05:23:05 UTC (rev 1967)
+++ index	2008-07-31 09:32:25 UTC (rev 1968)
@@ -38811,9 +38811,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>

Modified: source
===================================================================
--- source	2008-07-31 05:23:05 UTC (rev 1967)
+++ source	2008-07-31 09:32:25 UTC (rev 1968)
@@ -36233,8 +36233,11 @@
   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.</p>
+  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>
 
   <p>Non-visual user agents may ignore the argument, or may treat it
   in some media-specific manner most useful to the user.</p>




More information about the Commit-Watchers mailing list