Short URL: http://html5.org/r/1968
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 1968 | Make scrollIntoView() into a no-op if the page is too short. | 2008-07-31 09:32 |
Index: source =================================================================== --- source (revision 1967) +++ source (revision 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>